/** * Citation extraction and formatting helpers. * * Every tool that returns external content should produce * a structured `citations` array in its `details` so the * model (or a downstream UI) can render sources without * re-parsing prose. */ import type { Citation } from "../types.js"; /** Extract citations from MCP text payloads (Exa/DeepWiki format). */ export declare function extractCitationsFromMcpText(text: string, source: Citation["source"]): Citation[]; /** Format a citation block at the end of a tool result. */ export declare function formatCitationFooter(citations: Citation[]): string; /** Best-effort de-duplication of citations by URL. */ export declare function dedupeCitations(citations: Citation[]): Citation[]; //# sourceMappingURL=citations.d.ts.map