import type { Accessor, Reader } from "../reactivity/index.js"; import type { Component, Renderable } from "../runtime/vnode.js"; export interface Route { path: string; component: Component; children?: Route[]; beforeEnter?: (to: string, from: string, next: (path?: string) => void) => void; } export interface RouterOptions { routes: Route[]; } export interface MatchedRoute { route: Route; params: Record; } export interface Router { currentPath: Accessor; matched: Reader; push(path: string): void; } export declare function createRouter(options: RouterOptions): Router; export declare function RouterView(props: { router: Router; }): Renderable; //# sourceMappingURL=index.d.ts.map