@hot-labs/near-connect
Version:

11 lines (10 loc) • 370 B
TypeScript
export interface DataStorage {
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
remove(key: string): Promise<void>;
}
export declare class LocalStorage implements DataStorage {
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
remove(key: string): Promise<void>;
}