1 | import type { AbstractBaseCommand, CommandMetaData, LoadersContract } from '../types.js';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare class FsLoader<Command extends AbstractBaseCommand> implements LoadersContract<Command> {
|
8 | #private;
|
9 | constructor(comandsDirectory: string, filter?: (filePath: string) => boolean);
|
10 | /**
|
11 | * Returns the metadata of commands
|
12 | */
|
13 | getMetaData(): Promise<CommandMetaData[]>;
|
14 | /**
|
15 | * Returns the command class constructor for a given command. Null
|
16 | * is returned when unable to lookup the command
|
17 | */
|
18 | getCommand(metaData: CommandMetaData): Promise<Command | null>;
|
19 | }
|