import { Selection } from './selection'; interface RouterPage { cleanUp?(): void; } declare type RouterHandler = (params: RouterParams) => Selection; interface RouterParams { [param: string]: string; } interface RouterRoutes { [route: string]: RouterHandler; } interface RouterOptions { routes: RouterRoutes; class?: string; processPath?: (path: string) => string | undefined; } interface RouterApi { navigateTo(path: string): void; } declare function router(options: RouterOptions): Selection; export { RouterApi, RouterOptions, RouterRoutes, RouterParams, RouterHandler, RouterPage, router };