export interface P1Router { refresh(): void; replace(url: string, options?: { scroll?: boolean; }): void; pathname: string; searchParams: URLSearchParams; } export declare const P1RouterContext: import("react").Context; export declare function useP1Router(): P1Router; /** Same as useP1Router, but null outside a P1RouterContext.Provider instead of throwing. */ export declare function useOptionalP1Router(): P1Router | null;