import { ParseOptions, StringifyOptions } from 'query-string';
import type * as React from 'react';
export interface UrlStateProps {
    navigateMode?: 'push' | 'replace';
    recoverUrl?: boolean;
    sessionKey?: string;
    parseOptions?: ParseOptions;
    stringifyOptions?: StringifyOptions;
}
declare type BaseTypeValue = string | number | boolean | null | undefined;
declare const useUrlPersistState: <S extends object | BaseTypeValue>(initialState?: S | (() => S) | undefined, objKey?: string, options?: UrlStateProps) => readonly [S, (this: unknown, s: React.SetStateAction<S | Partial<{ [key in keyof S]: any; }>>) => void];
export default useUrlPersistState;
