import { Dispatch, SetStateAction } from "react"; declare function createPersistedState(key: string, provider?: Pick): { (initialState: S | (() => S)): [S, Dispatch>]; (): [S | undefined, Dispatch>]; }; export as namespace createPersistedState; export = createPersistedState;