1 |
|
2 |
|
3 |
|
4 | import { Dirent } from 'fs';
|
5 | import { IFS } from './fs';
|
6 | import { Readable, Writable } from 'stream';
|
7 | export interface IUnionFsError extends Error {
|
8 | prev?: IUnionFsError | null;
|
9 | }
|
10 | type readdirEntry = string | Buffer | Dirent;
|
11 |
|
12 |
|
13 |
|
14 | export declare class Union {
|
15 | private fss;
|
16 | ReadStream: typeof Readable | (new (...args: any[]) => Readable);
|
17 | WriteStream: typeof Writable | (new (...args: any[]) => Writable);
|
18 | private promises;
|
19 | constructor();
|
20 | unwatchFile: (...args: any[]) => void;
|
21 | watch: (...args: any[]) => {};
|
22 | watchFile: (...args: any[]) => void;
|
23 | existsSync: (path: string) => boolean;
|
24 | readdir: (...args: any[]) => void;
|
25 | readdirSync: (...args: any[]) => Array<readdirEntry>;
|
26 | readdirPromise: (...args: any[]) => Promise<Array<readdirEntry>>;
|
27 | private pathFromReaddirEntry;
|
28 | private sortedArrayFromReaddirResult;
|
29 | createReadStream: (path: string) => import("fs").ReadStream;
|
30 | createWriteStream: (path: string) => import("fs").WriteStream;
|
31 | |
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 | use(fs: IFS): this;
|
40 | private syncMethod;
|
41 | private asyncMethod;
|
42 | promiseMethod(method: string, args: any[]): Promise<any>;
|
43 | }
|
44 | export {};
|