import type { AgentMessageTouchedExternalSource } from '../../../utils/agent-message-runtime/AgentMessageTouchedExternalSource';
/**
 * Synthetic tool name used for external-source chips in chat UI.
 *
 * The Agents Server emits one such tool call per source outside the agent an answer viewed or
 * edited, so the chat shows which services, websites and searches the agent really reached below
 * the message that touched them. Work the agent does inside itself emits nothing.
 *
 * @private internal chat-ui marker for touched external sources
 */
export declare const EXTERNAL_SOURCE_TOOL_CALL_NAME = "external_source_touched";
/**
 * Parses the external-source chip payload from one tool result.
 *
 * @param result - Raw tool result payload.
 * @returns Parsed source metadata, or `null` when the result describes no external source.
 *
 * @private internal helper reused by chip and modal rendering
 */
export declare function parseExternalSourceToolCallResult(result: unknown): AgentMessageTouchedExternalSource | null;
/**
 * Resolves the chip label of one touched external source.
 *
 * @param externalSource - Parsed source metadata.
 * @returns User-facing name of the source.
 *
 * @private internal helper reused by chip and modal rendering
 */
export declare function resolveExternalSourceToolCallLabel(externalSource: AgentMessageTouchedExternalSource): string;
/**
 * Resolves the chip emoji of one touched external source.
 *
 * @param externalSource - Parsed source metadata.
 * @returns Emoji telling apart an integration, a website and a search.
 *
 * @private internal helper reused by chip and modal rendering
 */
export declare function resolveExternalSourceToolCallEmoji(externalSource: AgentMessageTouchedExternalSource): string;
