import { A2AClient } from "../a2a/client.js"; import type { Message, Task } from "../a2a/types.js"; export interface AgentEndpointOptions { /** * Optional URL base used when resolving relative app URLs. */ base?: string; } export interface SendMessageOptions { apiKey?: string; contextId?: string; metadata?: Record; requestTimeoutMs?: number; /** * If the target does not support streaming, fall back to async send + poll. * Defaults to true. */ fallbackToPolling?: boolean; timeoutMs?: number; userEmail?: string; orgDomain?: string; orgSecret?: string; } export declare function getMcpUrl(url: string, options?: AgentEndpointOptions): string; export declare function getA2AUrl(url: string, options?: AgentEndpointOptions): string; export declare function getAgentCardUrl(url: string, options?: AgentEndpointOptions): string; /** * Send a text prompt to an Agent-Native A2A endpoint and yield text deltas. */ export declare function sendMessage(url: string, text: string, options?: SendMessageOptions): AsyncGenerator; export { A2AClient }; export type { Message, Task }; //# sourceMappingURL=agent.d.ts.map