#!/usr/bin/env node interface ParsedArgs { profile: string; prompt: string; options: { cwd: string; outputFormat: string; permissionMode: string; timeout?: number; resumeSession?: boolean; sessionId?: string; maxTurns?: number; fallbackModel?: string; agents?: string; betas?: string; extraArgs?: string[]; runInBackground?: boolean; enableMonitor?: boolean; }; } /** * Delegation command handler * Routes -p flag commands to HeadlessExecutor with enhanced features */ export declare class DelegationHandler { /** * Route delegation command * @param args - Full args array from ccs.js */ route(args: string[]): Promise; /** * Handle continue command (resume last session) * @param parsed - Parsed args */ _handleContinue(parsed: ParsedArgs): Promise; /** * Parse args into structured format * @param args - Raw args * @returns { profile, prompt, options } */ _parseArgs(args: string[]): ParsedArgs; /** * Extract profile from args (first non-flag arg) * @param args - Args array * @returns profile name */ _extractProfile(args: string[]): string; /** * Extract prompt (second non-flag arg after profile) * @param args - Args array * @returns prompt text */ _extractPrompt(args: string[]): string; /** * Extract options from remaining args * @param args - Args array * @returns options for HeadlessExecutor */ _extractOptions(args: string[]): ParsedArgs['options']; /** * Validate profile exists and is configured * @param profile - Profile name */ _validateProfile(profile: string): void; } export {}; //# sourceMappingURL=delegation-handler.d.ts.map