UNPKG

dop-sdk

Version:

Mini App SDK for JavaScript by VTB

16 lines (15 loc) 715 B
import { MiniAppError } from '../types/error-types/mini-app-error'; import { MiniAppSecureStorageKeyValues, MiniAppSecureStorageSize } from '../types/secure-storage'; /** @internal */ export declare class SecureStorageService { isSecureStorageReady: boolean; secureStorageLoadError: MiniAppError | null; constructor(); setItems(items: MiniAppSecureStorageKeyValues): Promise<boolean | MiniAppError>; getItem(key: string): Promise<string>; removeItems(key: [string]): Promise<undefined>; clear(): Promise<undefined>; size(): Promise<MiniAppSecureStorageSize | MiniAppError>; onReady(onReady: () => void): void; onLoadError(onLoadError: (error: MiniAppError) => void): void; }