import type { TaskAssignment, TaskPlan, PlanResult, ProgressCallback } from '../types/index.js'; /** * Plan a task by spawning a PM Claude session. * PM reads the project, analyzes the task, and creates a structured plan. */ export declare function planTask(task: TaskAssignment, onProgress: ProgressCallback, signal?: AbortSignal, onTextChunk?: (text: string) => void, inputFiles?: string[]): Promise; /** * Chat with PM directly (resume session). PM answers conversationally * OR switches to planning mode if user gives a code task. * Returns { response, plan? } — plan is set only if PM outputs JSON plan. */ export declare function chatWithPM(pmSessionId: string, repoPath: string, userMessage: string, signal?: AbortSignal, onTextChunk?: (text: string) => void, inputFiles?: string[]): Promise<{ response: string; plan?: TaskPlan; sessionId?: string; }>; /** * Ask PM to answer a developer question by resuming PM session. */ export declare function askPM(pmSessionId: string, repoPath: string, question: string, context: string): Promise;