import { InjectionToken } from '@angular/core'; export declare const FNDY_STORAGE_SERVICE: InjectionToken; export interface StorageService { /** * Checks if the value is present in storage * @param key The key of the stored value * @returns {Promise} True if exists, false if not */ check(key: string): Promise; /** * Gets a key / value pair from storage * @param key Key to get * @returns resolves with the result */ get(key: string): Promise; /** * Gets a key / value pair from storage * @param key Key to get * @returns resolves with the result */ getAll(): Promise; /** * Stores a new / existing key / value pair in storage * @param key Key for value to store * @param value The value * @returns Resolves when complete */ set(key: string, value: any, opts?: any): Promise; /** * Removes a key / value pair from storage * @param key The key to remove * @returns Resolves when done removing */ remove(key: string, opts?: any): Promise; /** * Clears the entirety of the storage * @returns resolves when finishes clearing */ clear(): Promise; }