import { Ref } from "vue"; import type { ParseOptions, StringifyOptions } from "query-string"; declare type UrlState = Record; export interface Options { navigateMode?: "push" | "replace"; parseOptions?: ParseOptions; stringifyOptions?: StringifyOptions; } declare const useUrlState: (initialState?: S | (() => S) | undefined, options?: Options | undefined) => { state: Ref; setState: (s: Partial<{ [key in keyof S]: any; }> | ((prev: any) => Partial<{ [key in keyof S]: any; }>)) => void; }; export default useUrlState;