1 | export default interface UFS {
|
2 | unlink(path: string, cb: (err: Error) => void): void;
|
3 | stat(path: string): Promise<Stat>;
|
4 | getToCache(path: string, cachePath: string): Promise<string>;
|
5 | uploadFile(uploadMedia: any): Promise<any>;
|
6 | uploadFileFromCache(path: string, cachePath: string): Promise<void>;
|
7 | }
|
8 | export interface Stat {
|
9 | size: number;
|
10 | }
|
11 | export declare class LocalUFS implements UFS {
|
12 | unlink(path: string, cb: (err: Error) => void): void;
|
13 | stat(path: string): Promise<Stat>;
|
14 | getToCache(path: string, _: string): Promise<string>;
|
15 | uploadFile(uploadMedia: any): Promise<any>;
|
16 | uploadFileFromCache(path: string, cachePath: string): Promise<void>;
|
17 | }
|