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