import React from 'react'; export interface Options { navigateMode?: 'push' | 'replace'; } declare type UrlState = Record; declare const useUrlState: (initialState?: S | (() => S) | undefined, options?: Options | undefined) => readonly [Partial<{ [key in keyof S]: any; }>, (s: React.SetStateAction>) => void]; export default useUrlState;