/** * Command loader - loads command definitions from markdown files */ import type { CommandDefinition } from '../types/command.types.js'; export declare class CommandLoader { private commandsDir?; private cache; private pluginByCommand; private pluginDirs; constructor(commandsDir?: string | undefined); /** * Register an additional command directory contributed by a plugin. */ private pendingPluginDirNames; registerPluginDir(dir: string, pluginName?: string): void; /** * Return the plugin name that owns the given command, if known. */ getPluginFor(commandName: string): string | undefined; /** * Load a specific command by name */ loadCommand(commandName: string, loadContent?: boolean): Promise; /** * Resolve the file path for a command, checking plugin dirs if not in the primary dir. * Records the owning plugin name in pluginByCommand when the command is found in a plugin dir. */ private resolveCommandFilePath; /** * Load all commands */ loadAllCommands(): Promise>; /** * List available command names from primary and plugin directories. */ listCommands(): Promise; /** * Check if a command exists across primary and plugin directories. */ commandExists(commandName: string): Promise; /** * Clear cache */ clearCache(): void; /** * Get cache size */ getCacheSize(): number; } //# sourceMappingURL=command-loader.d.ts.map