/** * Command execution: validates args, manages browser sessions, runs commands. * * This is the single entry point for executing any CLI command. It handles: * 1. Argument validation and coercion * 2. Browser session lifecycle (if needed) * 3. Domain pre-navigation for cookie strategies * 4. Timeout enforcement * 5. Lazy-loading of TS modules from manifest * 6. Lifecycle hooks (onBeforeExecute / onAfterExecute) */ import { type CliCommand, type Arg, type CommandArgs } from './registry.js'; import { type ObservationExportResult } from './observation/index.js'; export declare function coerceAndValidateArgs(cmdArgs: Arg[], kwargs: CommandArgs): CommandArgs; export declare function executeCommand(cmd: CliCommand, rawKwargs: CommandArgs, debug?: boolean, opts?: { prepared?: boolean; profile?: string; trace?: string; keepTab?: string; windowMode?: string; siteSession?: string; onTraceExport?: (trace: ObservationExportResult) => void; }): Promise; export declare function prepareCommandArgs(cmd: CliCommand, rawKwargs: CommandArgs): CommandArgs;