export type SetParam = (value: T) => void; /** * useUrlState * -------------- * const [addType, setAddType] = useUrlState("keyName"); * addType is the value of the key=value pair in the url * setAddType is a function that sets the value of the key=value pair in the url */ export declare function useUrlState(key: string, initialValue?: K): [K | undefined, SetParam];