import type { Accessor, Reader } from "../../reactivity/src/index.js"; import type { Component, Renderable } from "../../runtime/src/vnode.js"; export interface RouterOptions { routes: Array<{ path: string; component: Component; }>; } export interface Router { currentPath: Accessor; current: 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