/// export interface IFileObject { path: string; name: string; size: number; url: string; } export interface ISessionObject extends IFileObject { id: string; ref_id: string; } export interface IStorageProvider { put(path: string, file: string | Buffer): Promise; remove(path: string | string[]): Promise; } export interface IStorageSessionManager { getRefFiles(ref_id: string): Promise; getExpire(): Promise; add(files: IFileObject[]): Promise; updateRef(sess_id: string[], ref_id: string): Promise; removeRef(ref_id: string): Promise; removeMany(sess_id: string[]): Promise; } export declare class AliyunStorage implements IStorageProvider { private client; private host; constructor(host: any, client: any); put(path: string, file: string | Buffer): Promise; remove(path: string | string[]): Promise; } export default class StorageService { static PARAM_ID: string; static MAX_ID: number; private static storage; private static manager; static init(storage: IStorageProvider, manager: IStorageSessionManager): Promise; static getSessionId(url: string): string; static appendSessionId(url: string, sessionId: string): string; static addFiles(files: string | Buffer | any[], path: string): Promise; static verfiy(urls: string | string[]): string[]; static updateSession(urls: string | string[], ref_id: string): Promise; static removeFiles(ref_id: string): Promise; static clearExpire(): Promise; }