import { RNSensitiveInfoOptions } from "react-native-sensitive-info"; import { TMigrationFuncParams } from "./createMigrate"; export interface PersistStorageValue { _currentVersion: number; value: Value; } export declare type UsePersistStorageOptions = { debug?: boolean; version?: number; persist?: boolean; migrate?: ((params: TMigrationFuncParams) => PersistStorageValue) | null; sensitive?: false | RNSensitiveInfoOptions; }; declare type CallbackFn = (prev: S) => S; export declare type AsyncSetState = (stateOrCallbackFn: S | CallbackFn) => Promise; declare const usePersistStorage: (key: string, initialValue: Value | (() => Value), { debug, version, persist, migrate, sensitive }?: UsePersistStorageOptions) => [Value, AsyncSetState, boolean]; export default usePersistStorage;