export interface AgentSessionSummary { sessionId: string; wordCount: number; workerCount: number; status: string; startedAt: string; progressStreamUrl: string; } export interface WorkerStatus { workerId: string; sectionIndex: number; status: string; progressPercent: number; partialOutput?: string; } export interface AgentSessionDetail { sessionId: string; wordCount: number; workerCount: number; status: string; startedAt: string; completedAt: string | null; workers: WorkerStatus[]; } export interface TransformationRecord { type: string; count: number; description: string; } export interface HighlightedSection { sectionIndex: number; changeType: string; changeCount: number; } export interface HumanizationReport { reportId: string; sessionId: string; synthesizedDocument: string; fleschKincaidBefore: number; fleschKincaidAfter: number; readabilityLabel: string; aiRiskReductionPercent: number; transformationsApplied: TransformationRecord[]; highlightedSections: HighlightedSection[]; generatedAt: string; } export interface ProgressHandlers { onWorkerProgress?: (data: { workerId: string; sectionIndex: number; progressPercent: number; status: string; partialOutput?: string; }) => void; onSupervisorStatus?: (data: { sessionId: string; status: string; workersComplete: number; workersTotal: number; }) => void; onSessionComplete?: (data: { sessionId: string; reportId: string; synthesizedDocument: string; }) => void; onSessionFailed?: (data: { sessionId: string; errorCode: string; message: string; }) => void; onError?: (err: Event) => void; } /** * Submit a document for multi-agent processing. */ export declare function submitDocument(document: string, userToken: string): Promise; /** * Open an SSE connection for real-time progress updates. * Returns a cleanup function — call it to close the EventSource. */ export declare function subscribeToProgress(sessionId: string, userToken: string, handlers: ProgressHandlers): () => void; /** * Poll the current status of an agent session. */ export declare function getSession(sessionId: string, userToken: string): Promise; /** * Fetch the humanization report for a completed session. */ export declare function getReport(sessionId: string, userToken: string): Promise; //# sourceMappingURL=agentService.d.ts.map