import { loadConfig, loadExplicitAgentModelOverrides } from '../config'; type SupportedBackend = 'claude' | 'copilot' | 'codex' | 'opencode'; interface TaskOptions { backend?: string; } interface TaskDeps { cwd: () => string; exit: (code?: number) => never; loadConfig?: typeof loadConfig; loadExplicitAgentModelOverrides?: typeof loadExplicitAgentModelOverrides; ensureBackendAvailable?: (backend: SupportedBackend) => void; askShouldPlan?: () => Promise; runPlanningSession?: (prompt: string, backend: SupportedBackend, env: NodeJS.ProcessEnv) => Promise; runExecutionSession?: (prompt: string, backend: SupportedBackend, env: NodeJS.ProcessEnv) => Promise; getCurrentBranch?: () => string | null; } export declare function buildTaskPlanningPrompt(task: string, cwd: string, branch: string): string; export declare function buildTaskExecutionPrompt(task: string, cwd: string, branch: string): string; export declare function buildTaskExecutionInvocation(backend: SupportedBackend, env: NodeJS.ProcessEnv): { command: string; args: string[]; extraEnv?: NodeJS.ProcessEnv; }; export declare function taskCommand(task: string, options?: TaskOptions, deps?: TaskDeps): Promise; export {}; //# sourceMappingURL=task.d.ts.map