import { StateHookTuple, StorageType, NotUndefined, UseStorageRawOption, UseStorageParserOption } from '../create-storage-hook/index.js'; type ValueHook = () => T; type SetValueHook = () => React.Dispatch>; type StateHook = () => StateHookTuple; declare function createStorageStateFactory(type: StorageType): { (key: string, serverValue: NotUndefined, options?: UseStorageRawOption | UseStorageParserOption): readonly [StateHook, ValueHook, SetValueHook]; (key: string, serverValue?: undefined, options?: UseStorageRawOption | UseStorageParserOption): readonly [StateHook, ValueHook, SetValueHook]; }; export { createStorageStateFactory }; export type { SetValueHook, StateHook, ValueHook };