1 | /**
|
2 | * @module SlimRunner
|
3 | */
|
4 | /**
|
5 | * Loads files using the glob patterns.
|
6 | *
|
7 | * @class Loader
|
8 | */
|
9 | export declare class Loader {
|
10 | private _glob;
|
11 | private _filterFn;
|
12 | /**
|
13 | * Define the glob for the files
|
14 | */
|
15 | files(glob: string[] | string): void;
|
16 | /**
|
17 | * Define a custom filter function to filter files
|
18 | */
|
19 | filter(cb: (file: string) => void): void;
|
20 | /**
|
21 | * Returns an array of sorted files based on the glob
|
22 | * pattern.
|
23 | */
|
24 | loadFiles(): Promise<string[]>;
|
25 | }
|