/// <reference types="react" />
import { LocationHook } from 'wouter/use-location';
export declare type RouterContext = {
    hook: LocationHook;
    base: string;
};
export declare const RouterCtx: import("react").Context<{
    v?: RouterContext | undefined;
}>;
export declare const buildRouter: ({ hook, base, }?: {
    hook?: LocationHook | undefined;
    base?: string | undefined;
}) => RouterContext;
export declare const useRouter: () => RouterContext;
export declare const useLocation: () => [string, (to: string, options?: {
    replace?: boolean | undefined;
} | undefined) => void];
export declare const useNavigate: (options: {
    to?: string;
    href?: string;
    replace?: boolean;
}) => import("react").MutableRefObject<(() => void) | undefined>;
