import { type FC, type ReactNode } from 'react'; type SetFn = (newParams: Record, reset?: boolean) => void; type SetLocation = (location: string, noHistory?: boolean) => boolean; declare class Ctx { base: string; location: string; pathname: string; query: Record; state: any; constructor(base: string); update(): void; cleanPath: () => void; setLocation: (loc: string) => boolean; setQuery: (string: Record) => boolean; } export declare const RouterCtx: import("react").Context; export declare const Router: FC<{ base?: string; children: ReactNode; }>; export declare const useRouter: () => Ctx; export declare const useLocation: () => [location: string, setLocation: SetLocation]; export declare const useSearchParams: () => (Record | ((string: Record) => boolean))[]; export declare const useCmsParams: () => [Record, SetFn]; export {};