import type { ICommand } from "../definitions/commands"; export interface DeferredCommandOptions { owner: string; source: string; load: () => void; } export type DeferredCommandRejection = { reason: "invalid-name"; detail: string; } | { reason: "claimed"; owner: string; } | { reason: "built-in"; } | { reason: "subcommand-parent"; } | { reason: "parent-is-command"; parent: string; }; export interface DeferredCommandResult { registered: boolean; rejection?: DeferredCommandRejection; } export declare abstract class CommandRegistry { abstract requireCommand(names: string | string[], file: string): void; abstract registerCommand(names: string | string[], resolver: any): void; abstract registerDeferredCommand(name: string, options: DeferredCommandOptions): DeferredCommandResult; abstract resolveCommand(name: string): ICommand; abstract getRegisteredCommandsNames(includeDev: boolean): string[]; abstract getChildrenCommandsNames(commandName: string): string[]; abstract buildHierarchicalCommand(parentCommandName: string, commandLineArguments: string[]): any; abstract isValidHierarchicalCommand(commandName: string, commandArguments: string[]): Promise; abstract isDefaultCommand(commandName: string): boolean; }