UNPKG

574 BTypeScriptView Raw
1import { StorageCopySource, StorageCopyDestination } from './Storage';
2export interface StorageProvider {
3 cancel?(request: Promise<any>): void;
4 copy?(src: StorageCopySource, dest: StorageCopyDestination, config?: any): Promise<any>;
5 configure(config: object): object;
6 get(key: string, options?: any): Promise<string | Object>;
7 put(key: string, object: any, options?: any): Promise<Object>;
8 remove(key: string, options?: any): Promise<any>;
9 list(path: any, options?: any): Promise<any>;
10 getCategory(): string;
11 getProviderName(): string;
12}