import { PersistStorageValue } from "./usePersistStorage"; export declare type TMigrations = { [version: number]: (state: any) => any; }; export declare type TMigrationFuncParams = { key: string; state: PersistStorageValue; version: number; }; export declare type TCreateMigrateConfig = { debug?: boolean; }; declare const createMigrate: (migrations: TMigrations, configs?: TCreateMigrateConfig) => ({ key, state, version }: TMigrationFuncParams) => PersistStorageValue; export default createMigrate;