1 | import { Stats } from 'node:fs';
|
2 | import { Matcher } from 'picomatch';
|
3 |
|
4 | type Encoding = "utf8" | "buffer";
|
5 | type Dir = string | Uint8Array;
|
6 | type RRDirOpts = {
|
7 | strict?: boolean;
|
8 | stats?: boolean;
|
9 | followSymlinks?: boolean;
|
10 | include?: string[];
|
11 | exclude?: string[];
|
12 | insensitive?: boolean;
|
13 | };
|
14 | type InternalOpts = {
|
15 | includeMatcher?: Matcher;
|
16 | excludeMatcher?: Matcher;
|
17 | encoding?: Encoding;
|
18 | };
|
19 | type Entry = {
|
20 |
|
21 | path: Dir;
|
22 |
|
23 | directory?: boolean;
|
24 |
|
25 | symlink?: boolean;
|
26 |
|
27 | stats?: Stats;
|
28 |
|
29 | err?: Error;
|
30 | };
|
31 | export declare function rrdir(dir: Dir, opts?: RRDirOpts, { includeMatcher, excludeMatcher, encoding }?: InternalOpts): AsyncGenerator<Entry>;
|
32 | export declare function rrdirAsync(dir: Dir, opts?: RRDirOpts, { includeMatcher, excludeMatcher, encoding }?: InternalOpts): Promise<Entry[]>;
|
33 | export declare function rrdirSync(dir: Dir, opts?: RRDirOpts, { includeMatcher, excludeMatcher, encoding }?: InternalOpts): Entry[];
|
34 | export {};
|