import type { Path } from 'wouter-preact';
export interface MemoryRouterHandle {
    navigate: (to: Path, options?: {
        replace?: boolean;
    }) => void;
    history: Path[];
}
export declare const MemoryRouterContext: import("preact").Context<MemoryRouterHandle | null>;
export declare const useMemoryRouter: () => MemoryRouterHandle | null;
