import type { OpenCodeClient } from "../../shared/session-api.js"; /** * Validates agent name format: lowercase alphanumeric + hyphens. */ export declare function validateAgentFormat(agent: string): boolean; /** * Validates agent existence in OpenCode agent registry. */ export declare function validateAgentExists(agent: string, client: OpenCodeClient): Promise; /** * Dispatches slash command prompt via deferred setTimeout. * Performs format and existence validation for optional agent override. * Returns a Promise that resolves with real success/failure after the SDK * dispatch completes. The 50ms setTimeout delay prevents reentrant deadlock. */ export declare function dispatchCommand(context: { client: OpenCodeClient; sessionID: string; agent?: string; restoreAgent?: string; promptText: string; subtask?: boolean; description?: string; commandSource?: string; directory?: string; }): Promise<{ success: boolean; output?: string; error?: boolean; }>; //# sourceMappingURL=dispatch-command.d.ts.map