@sentclose/sentc-nodejs
Version:
End-to-end encryption sdk
15 lines (14 loc) • 569 B
TypeScript
import { StorageInterface, InitReturn } from "@sentclose/sentc-common/lib/FileStorage/StorageInterface";
export declare class FileSystemStorage implements StorageInterface {
private dbName;
private readonly storageDir;
isInit: boolean;
constructor(dbName?: string);
init(): Promise<InitReturn>;
getDownloadUrl(): Promise<string>;
cleanStorage(): Promise<void>;
storePart(chunk: ArrayBuffer): Promise<void>;
delete(key: string): Promise<void>;
getItem(key: string): Promise<any>;
set(key: string, item: any): Promise<void>;
}