import { Routes } from '../types/route'; import { Router, RouterOptions } from '../types/router'; import { EmptyRouterPlugin, RouterPlugin } from '../types/routerPlugin'; /** * Creates a router instance for a Vue application, equipped with methods for route handling, lifecycle hooks, and state management. * * @param routes - {@link Routes} An array of route definitions specifying the configuration of routes in the application. * Use createRoute method to create the route definitions. * @param options - {@link RouterOptions} for the router, including history mode and initial URL settings. * @returns Router instance * * @example * ```ts * import { createRoute, createRouter } from '@kitbag/router' * * const Home = { template: '