export type AgentNeed = { type: "docdex.search"; query: string; limit?: number; } | { type: "docdex.open"; path: string; start_line?: number; end_line?: number; head?: number; clamp?: boolean; } | { type: "docdex.snippet"; doc_id: string; window?: number; } | { type: "docdex.symbols"; file: string; } | { type: "docdex.ast"; file: string; max_nodes?: number; } | { type: "docdex.web"; query: string; force_web?: boolean; } | { type: "docdex.impact"; file: string; } | { type: "docdex.impact_diagnostics"; file?: string; limit?: number; offset?: number; } | { type: "docdex.tree"; path?: string; max_depth?: number; dirs_only?: boolean; include_hidden?: boolean; } | { type: "docdex.dag_export"; session_id?: string; format?: "json" | "text" | "dot"; max_nodes?: number; } | { type: "file.read"; path: string; } | { type: "file.list"; root: string; pattern?: string; } | { type: "file.diff"; paths?: string[]; } | { type: "agent.delegate"; role?: "explorer" | "reviewer" | "worker" | "verifier" | "custom"; goal: string; tools?: string[]; allowed_paths?: string[]; write_paths?: string[]; read_only?: boolean; max_steps?: number; max_tool_calls?: number; timeout_ms?: number; }; export type AgentRequest = { version: "v1"; role: string; request_id: string; needs: AgentNeed[]; context?: { summary?: string; }; }; export type ParseAgentRequestOptions = { defaultRequestId?: string; }; export type CodaliResponseResult = { type: "docdex.search"; query: string; hits: unknown[]; } | { type: "docdex.open"; path: string; content: string; } | { type: "docdex.snippet"; doc_id: string; content: string; } | { type: "docdex.symbols"; file: string; symbols: unknown; } | { type: "docdex.ast"; file: string; nodes: unknown; } | { type: "docdex.web"; query: string; results: unknown[]; } | { type: "docdex.impact"; file: string; inbound: unknown[]; outbound: unknown[]; } | { type: "docdex.impact_diagnostics"; file?: string; diagnostics: unknown; } | { type: "docdex.tree"; tree: string; } | { type: "docdex.dag_export"; session_id: string; format?: "json" | "text" | "dot"; content: unknown; } | { type: "file.read"; path: string; content: string; } | { type: "file.list"; root: string; files: string[]; } | { type: "file.diff"; paths?: string[]; diff: string; } | { type: "agent.delegate"; role: string; goal: string; results: unknown[]; } | { type: "patch.apply_failure"; error: string; patches: string[]; rollback: { attempted: boolean; ok: boolean; error?: string; }; } | { type: "critic.result"; status: "PASS" | "FAIL"; reasons: string[]; suggested_fixes?: string[]; touched_files?: string[]; plan_targets?: string[]; guardrail?: { disposition: "retryable" | "non_retryable"; reason_code: string; }; high_confidence?: boolean; verification?: { schema_version: 1; outcome: "verified_passed" | "verified_failed" | "unverified_with_reason"; reason_codes: string[]; policy: { policy_name: string; minimum_checks: number; enforce_high_confidence: boolean; }; checks: unknown[]; totals: { configured: number; runnable: number; attempted: number; passed: number; failed: number; unverified: number; }; touched_files?: string[]; language_signals?: string[]; }; }; export type CodaliResponse = { version: "v1"; request_id: string; results: CodaliResponseResult[]; meta?: { repo_root?: string; warnings?: string[]; }; }; export type NormalizedNeed = { tool: "docdex.search"; params: { query: string; limit?: number; }; } | { tool: "docdex.open"; params: { path: string; start_line?: number; end_line?: number; head?: number; clamp?: boolean; }; } | { tool: "docdex.snippet"; params: { doc_id: string; window?: number; }; } | { tool: "docdex.symbols"; params: { file: string; }; } | { tool: "docdex.ast"; params: { file: string; max_nodes?: number; }; } | { tool: "docdex.web"; params: { query: string; force_web?: boolean; }; } | { tool: "docdex.impact"; params: { file: string; }; } | { tool: "docdex.impact_diagnostics"; params: { file?: string; limit?: number; offset?: number; }; } | { tool: "docdex.tree"; params: { path?: string; max_depth?: number; dirs_only?: boolean; include_hidden?: boolean; }; } | { tool: "docdex.dag_export"; params: { session_id?: string; format?: "json" | "text" | "dot"; max_nodes?: number; }; } | { tool: "file.read"; params: { path: string; }; } | { tool: "file.list"; params: { root: string; pattern?: string; }; } | { tool: "file.diff"; params: { paths?: string[]; }; } | { tool: "agent.delegate"; params: { role: "explorer" | "reviewer" | "worker" | "verifier" | "custom"; goal: string; tools?: string[]; allowed_paths?: string[]; write_paths?: string[]; read_only?: boolean; max_steps?: number; max_tool_calls?: number; timeout_ms?: number; }; }; export declare const parseAgentRequest: (input: string, options?: ParseAgentRequestOptions) => AgentRequest; export declare const normalizeAgentRequest: (request: AgentRequest) => NormalizedNeed[]; //# sourceMappingURL=AgentProtocol.d.ts.map