/** * Agent-to-agent collaboration types */ import type { A2AConfig } from "../types.js"; /** * Resolved A2A configuration */ export interface ResolvedA2AConfig { /** Is A2A enabled */ enabled: boolean; /** Domains that host agents */ agentDomains: string[]; /** Maximum ping-pong turns */ maxPingPongTurns: number; } /** * Agent detection result */ export interface AgentDetection { /** Is this an agent message */ isAgent: boolean; /** Remote agent ID (if detected) */ agentId: string | null; /** Current turn number (from header) */ turn: number; } /** * Email headers for A2A */ export declare const A2A_HEADERS: { readonly AGENT: "x-openclaw-agent"; readonly TURN: "x-openclaw-turn"; }; /** * Special stop tokens */ export declare const A2A_TOKENS: { readonly NO_REPLY: "NO_REPLY"; }; /** * Resolve A2A config from raw config */ export declare function resolveA2AConfig(a2a?: A2AConfig): ResolvedA2AConfig;