export interface LoadParams { key: string; id?: string; autoSync?: boolean; syncInBackground?: boolean; syncParams?: any; } export default class Storage { sync: any; constructor(params?: { size?: number; storageBackend?: any; defaultExpires?: number | null; enableCache?: boolean; sync?: any; }); save(params: { key: string; id?: string; data: any; expires?: number | null }): Promise; load(params: LoadParams): Promise; getIdsForKey(key: string): Promise; getAllDataForKey(key: string): Promise; getBatchData(params: LoadParams[]): Promise; getBatchDataWithIds(params: { key: string; ids: string[] }): Promise; clearMapForKey(key: string): Promise; remove(params: { key: string; id?: string }): Promise; clearMap(): Promise; }