/** * Defensive readers for the terminal `eventual_response` payload. * * These mirror the widget's internal helpers: the server's response envelope and * citation list are optional and back-compatible, so we tolerate their total * absence, non-array shapes, and missing fields rather than letting a slightly * different server break rendering. */ import type { Citation } from '../types.js'; /** Pull the final assistant text out of an `eventual_response` data payload. */ export declare function extractFinalText(response: unknown): string | null; /** Pull the grounding {@link Citation}s out of a terminal `eventual_response`'s inner data. */ export declare function extractCitations(inner: unknown): Citation[]; /** * Only `http(s)` URLs become anchor hrefs. Mirrors the widget's `safeHttpUrl` * XSS guard so a `javascript:`/`data:` citation URL can never become a live link. */ export declare function safeHttpUrl(url: string | undefined): string | undefined; //# sourceMappingURL=response.d.ts.map