import type { UrlParser, ViewPaths } from "./types";
type Options<T extends ViewPaths> = UrlParser<T> extends Record<string, never> ? {
    search?: Record<string, string | number | boolean | undefined | null>;
    shallow?: boolean;
    hash?: string;
    locale?: string;
} : {
    search?: Record<string, string | number | boolean | undefined | null>;
    params: UrlParser<T>;
    hash?: string;
    shallow?: boolean;
    locale?: string;
};
export declare function useNavigate(): {
    push: <T extends ViewPaths>(path: T | (string & {}), ...args: UrlParser<T> extends Record<string, never> ? [options?: Options<T>] : [options: Options<T>]) => Promise<void>;
    replace: <T extends ViewPaths>(path: T | (string & {}), ...args: UrlParser<T> extends Record<string, never> ? [options?: Options<T>] : [options: Options<T>]) => Promise<void>;
};
export {};
//# sourceMappingURL=useNavigate.d.ts.map