export type StorageKey = string; export type SerializedItem = string; export interface UsePersistableStateOptions { /** * Unique key to store state with local storage. When specified, state will * be stored in local storage. * * @defaultValue `undefined` */ storageKey?: StorageKey; } export type UsePersistableStateResult = readonly [ Item | undefined, (item: Item) => void ]; /** Utility hook to optionally persist state in local storage. */ export declare function usePersistableState({ storageKey, }: UsePersistableStateOptions): UsePersistableStateResult; //# sourceMappingURL=use-persistable-state.d.ts.map