import type { AgentChatEvent } from "../agent/types.js"; import type { DataPart } from "./types.js"; export declare const A2A_AGENT_ACTIVITY_KIND = "agent-native/agent-activity"; export declare const A2A_AGENT_ACTIVITY_VERSION = 1; export declare const MAX_A2A_ACTIVITY_REASONING_CHARS = 32768; export declare const MAX_A2A_ACTIVITY_RESPONSE_CHARS = 32768; export declare const MAX_A2A_ACTIVITY_REASONING_SEGMENTS = 128; export declare const MAX_A2A_ACTIVITY_TOOL_CALLS = 64; export declare const MAX_A2A_ACTIVITY_TOOL_NAME_CHARS = 96; export declare const MAX_A2A_ACTIVITY_TOOL_ID_CHARS = 128; export declare const MAX_A2A_ACTIVITY_TOOL_INPUT_CHARS = 1024; export declare const MAX_A2A_ACTIVITY_TOOL_RESULT_CHARS = 512; export declare const MAX_A2A_ACTIVITY_TOOL_PAYLOAD_CHARS = 16384; export declare const MAX_A2A_ACTIVITY_TOTAL_CHARS: number; export type A2AAgentActivityPhase = "reasoning" | "tool" | "responding" | "complete" | "error"; export type A2AAgentActivityToolStatus = "running" | "completed" | "failed"; export interface A2AAgentActivityToolCall { name: string; id?: string; status: A2AAgentActivityToolStatus; input?: string; result?: string; } export interface A2AAgentActivitySnapshot extends Record { kind: typeof A2A_AGENT_ACTIVITY_KIND; version: typeof A2A_AGENT_ACTIVITY_VERSION; sequence: number; startedAt: number; updatedAt: number; durationMs: number; activePhase: A2AAgentActivityPhase; reasoning: string[]; toolCalls: A2AAgentActivityToolCall[]; response?: string[]; responseText?: string; } export interface A2AAgentActivityState { sequence: number; startedAt: number; updatedAt: number; activePhase: A2AAgentActivityPhase; reasoning: string[]; toolCalls: A2AAgentActivityToolCall[]; response: string[]; } export declare function createA2AAgentActivityState(startedAt?: number): A2AAgentActivityState; export declare function applyA2AAgentActivityEvent(state: A2AAgentActivityState, event: AgentChatEvent, updatedAt?: number): A2AAgentActivityState; export declare function buildA2AAgentActivitySnapshot(state: A2AAgentActivityState): A2AAgentActivitySnapshot; export declare function buildA2AAgentActivityPart(state: A2AAgentActivityState): DataPart; export declare function parseA2AAgentActivityPart(part: unknown): A2AAgentActivitySnapshot | null;