declare type Dispatch = (value: A) => void; declare type SetStateAction = S | ((prevState: S) => S); declare const useLocalState: (key: string, defaultValue: S | (() => S)) => [S, Dispatch>, () => void]; export default useLocalState; //# sourceMappingURL=index.d.ts.map