UNPKG

strata-storage

Version:

Zero-dependency universal storage plugin providing a unified API for all storage operations across web, Android, and iOS platforms

32 lines 1.19 kB
/** * Strata Storage Web Implementation * Web platform implementation of the Capacitor plugin */ import type { StrataStoragePlugin, NativeStorageType, NativeGetOptions, NativeSetOptions, NativeRemoveOptions, NativeClearOptions, NativeKeysOptions, NativeSizeOptions, NativeSizeResult } from './definitions'; import type { StorageValue } from '@/types'; export declare class StrataStorageWeb implements StrataStoragePlugin { private adapters; private initialized; private initializeAdapters; private getAdapter; isAvailable(options: { storage: NativeStorageType; }): Promise<{ available: boolean; }>; get(options: NativeGetOptions): Promise<{ value: StorageValue | null; }>; set(options: NativeSetOptions): Promise<void>; remove(options: NativeRemoveOptions): Promise<void>; clear(options: NativeClearOptions): Promise<void>; keys(options: NativeKeysOptions): Promise<{ keys: string[]; }>; size(options: NativeSizeOptions): Promise<NativeSizeResult>; /** * Get suggestion for web alternative based on native storage type */ private getSuggestion; } //# sourceMappingURL=web.d.ts.map