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: '
Home
' } * const About = { template: '
About
' } * * export const routes = [ * createRoute({ name: 'home', path: '/', component: Home }), * createRoute({ name: 'path', path: '/about', component: About }), * ] as const * * const router = createRouter(routes) * ``` */ export declare function createRouter(routes: TRoutes, options?: TOptions, plugins?: TPlugin[]): Router; export declare function createRouter(routes: TRoutes[], options?: TOptions, plugins?: TPlugin[]): Router;