import { AdapterYieldChunk } from '@tanstack/ai'; import { AcpSessionUpdate, AcpStopReason, AcpUsage } from '../types/acp-types.js'; export declare const BRIDGED_MCP_SERVER_NAME = "tanstack"; export type AcpStreamEvent = { kind: 'session'; sessionId: string; } | { kind: 'update'; update: AcpSessionUpdate; } | { kind: 'done'; stopReason: AcpStopReason; usage?: AcpUsage; }; export interface AcpTranslateLabels { sessionIdEvent: string; planEvent?: string; refusalMessage?: string; /** * When set, non-text agent message content (image / audio / resource / * resource_link blocks) is surfaced as a CUSTOM event under this name instead * of being dropped. Each event's `value` is `{ content: }`. * Omit to keep the text-only behavior. */ contentEvent?: string; } export interface TranslateContext { model: string; runId: string; threadId: string; parentRunId?: string; genId: () => string; labels: AcpTranslateLabels; bridgedToolNames?: ReadonlySet; onAcpEvent?: (event: AcpStreamEvent) => void; } export declare function matchBridgedToolName(title: string | null | undefined, bridgedToolNames: ReadonlySet | undefined): string | undefined; export declare function translateAcpStream(events: AsyncIterable, ctx: TranslateContext): AsyncIterable;