/** * /plan command handler. * * Handles the subcommands of the /plan slash command: * /plan mode auto|single|cohort|background|remote * /plan explain * /plan override * /plan clear * * Returns a human-readable result string to display in the conversation. */ import type { RuntimeEventBus } from '../runtime/events/index.js'; import type { AdaptivePlanner as AdaptivePlannerType } from './adaptive-planner.js'; export interface PlanCommandResult { /** Human-readable output to show the user. */ output: string; /** Whether the command succeeded. */ ok: boolean; } export interface PlanCommandDeps { adaptivePlanner: Pick; runtimeBus?: RuntimeEventBus | null | undefined; } /** * Dispatch a parsed /plan subcommand. * * @param subcommand - The first word after /plan (e.g. 'mode', 'explain', 'override'). * @param args - Remaining tokens. */ export declare function handlePlanCommand(deps: PlanCommandDeps, subcommand: string, args: string[]): PlanCommandResult; //# sourceMappingURL=plan-command-handler.d.ts.map