/**
 * Core Command Executor
 *
 * UI-agnostic command execution engine.
 *
 * Input: raw string command line
 * Output: structured result (events, actions, state updates)
 *
 * Responsibilities:
 * - Parse command name + args
 * - Lookup in registry
 * - Execute handler
 * - Route output to eventBus (or return results for UI to display)
 *
 * No console.log spam — only emit events.
 */
import { type CommandContext, type CommandResult } from './commandRegistry.js';
/**
 * Parsed command structure
 */
export interface ParsedCommand {
    name: string;
    args: string[];
    raw: string;
}
/**
 * Parse command line input
 *
 * Responsibilities:
 * - Trim leading/trailing whitespace
 * - Support quoted arguments: "quoted value" and 'quoted value'
 * - Preserve spaces inside quotes
 * - Split unquoted tokens on whitespace
 *
 * Rules:
 * - Empty input → return { name: "", args: [], raw }
 * - Parsing never throws
 * - Parsing never emits UI output
 */
export declare function parseCommand(line: string): ParsedCommand;
/**
 * Execute a parsed command
 *
 * @param parsed - Parsed command
 * @param ctx - Command context
 * @param emitToBus - If true, emit events to eventBus. If false, return events.
 * @returns Command result
 */
export declare function executeCommand(parsed: ParsedCommand, ctx?: CommandContext, emitToBus?: boolean): Promise<CommandResult>;
/**
 * Execute command from raw input string
 *
 * Convenience function that parses and executes in one call.
 */
export declare function executeCommandLine(line: string, ctx?: CommandContext, emitToBus?: boolean): Promise<CommandResult>;
//# sourceMappingURL=commandExecutor.d.ts.map