import { Storage, StorageItemMap } from "../types/storage.js"; import { Compute } from "@bigmi/core"; //#region src/factories/createStorage.d.ts type BaseStorage = { getItem(key: string): string | null | undefined | Promise; setItem(key: string, value: string): void | Promise; removeItem(key: string): void | Promise; }; type CreateStorageParameters = { deserialize?: ((value: string) => type | unknown) | undefined; key?: string | undefined; serialize?: ((value: type | any) => string) | undefined; storage?: Compute | undefined; }; declare function createStorage = Record, storageItemMap extends StorageItemMap = StorageItemMap & itemMap>(parameters: CreateStorageParameters): Compute>; declare const noopStorage: BaseStorage; declare function getDefaultStorage(): BaseStorage; //#endregion export { BaseStorage, CreateStorageParameters, createStorage, getDefaultStorage, noopStorage }; //# sourceMappingURL=createStorage.d.ts.map