import type { LiveComponent, PropsWithChildren } from '@use-gpu/live'; import { QueryParams, Route, RouterAPI } from './types.d.cts'; export declare const RouterContext: import("@use-gpu/live").LiveContext; export type RouterProps = PropsWithChildren<{ source?: any; routes?: Record; base?: string; hash?: boolean; }>; export declare const Router: LiveComponent; export declare const useRouterContext: () => RouterAPI; export declare const makeBasedURL: (base: string, suffix: string, hash?: boolean) => string; export declare const makeRelativeURL: (base: string, path: string, query?: QueryParams | string, hash?: boolean) => string; export declare const makeBrowserHistory: (base?: string, hash?: boolean) => { resource: (callback: any) => () => void; path: () => string; query: () => Record; back: () => void; forward: () => void; go: (n: number) => void; push: (path: string, query?: QueryParams | string) => void; replace: (path: string, query?: QueryParams | string) => void; linkTo: (path: string, query?: QueryParams | string) => { href: string; onClick: (e: any) => void; }; };