import type { Awaitable } from '@daysnap/types'; declare module '../codelet' { interface Codelet { useRouter: boolean; navigateTo(to: Location): Promise; redirectTo(to: Location): Promise; reLaunch(to: Location): Promise; switchTab(to: Location): Promise; } } export type RouteLocation = { url: string; query?: Record; }; export type Location = string | RouteLocation; export interface RouteNext { (): void; } export interface RouterOptions { beforeEach?: (to: RouteLocation, from: RouteLocation, next: RouteNext) => Awaitable; afterEach?: (to: RouteLocation, from: RouteLocation) => Awaitable; } export declare const router: (col: import("../codelet").Codelet, options?: RouterOptions) => void;