import { Actions } from "../actions"; export interface Storage { put(action: Actions): Promise; get(): Promise>; clear(): Promise; flush(filter?: (x: Actions) => boolean): Promise; origin(): string; } export interface RemoteStorage { getForeign(appKey: string, pubKey: string): Promise>; }