import type { StorageProps, StorageConfig, StorageValue, StorageCallback, StorageObjectValue, StorageArrayValue } from './type'; /** * @title StorageClass * @description 对 LocalStorage / SessionStorage 进行二次封装, 添加类型的支持 */ export declare class StorageClass implements StorageProps { length: number; storage: Storage; defaultValue?: StorageValue; setCallback?: StorageCallback; getCallback?: StorageCallback; constructor(storage: Storage, config?: StorageConfig); getItem(key: string): string | null; get(key: string, defaultValue?: StorageValue): StorageValue; getNumber(key: string, defaultValue?: number): number; getString(key: string, defaultValue?: string): string; getObject(key: string, defaultValue?: Record): StorageObjectValue; getArray(key: string, defaultValue?: StorageArrayValue): StorageArrayValue; setItem(key: string, value: StorageValue): void; key(index: number): string | null; removeItem(key: string): void; clear(): void; } //# sourceMappingURL=storage.d.ts.map