// The Lucia project.
// Copyright 2024-2026 DSP, inc.  All rights reserved.
// Authors:
//   cindy.chang@dsp.im (Cindy Chang), 2024/7/9
/**
 * @module types/vue-router.d
 *   Vue 3 component instance type augmentation for
 *   `$router` and `$route` properties.
 */

import type { Router, RouteLocationNormalizedLoaded } from 'vue-router';

/** Augments Vue 3 component instance properties with router types. */
declare module '@vue/runtime-core' {
  /** Component custom property augmentation. */
  interface ComponentCustomProperties {
    /** The Vue Router instance. */
    $router: Router;
    /** The current normalized route location. */
    $route: RouteLocationNormalizedLoaded;
  }
}
