type HistoryMode = "search" | "pathname";
interface UseHistoryOptions {
    mode?: HistoryMode;
    paramName?: string;
    basePath?: string;
}
type Params = Record<string, string | number | boolean | null | undefined>;
declare const useShallowRouter: (options?: UseHistoryOptions) => {
    path: string;
    searchParams: URLSearchParams;
    otherParams: URLSearchParams;
    push: (path: string, additionalParams?: Params, state?: any) => void;
    replace: (path: string, additionalParams?: Params, state?: any) => void;
    goBack: () => void;
    goForward: () => void;
    go: (n: number) => void;
    updateParams: (params: Params, replaceHistory?: boolean) => void;
    clearParams: (keepPath?: boolean) => void;
    getParam: (key: string) => string | null;
    hasParam: (key: string) => boolean;
    length: number;
    href: string;
    basename: string;
};
export default useShallowRouter;
