import type { ChatSource } from '../types/message.types'; /** How many retrieved sources to show when the answer cited none of them. */ export declare const FALLBACK_TOP_RETRIEVED = 3; export interface CitedSources { /** Sources the answer referenced, in the order the answer first referenced * them — NOT in `index` order. */ cited: ChatSource[]; /** Everything retrieved but not referenced, in the order supplied. */ uncited: ChatSource[]; } /** * Split an answer's sources into the ones it cited and the ones it did not. * * Reading order, not numeric order: the strip is a legend for the sentences * above it, so the chip for the citation the reader meets first comes first, * even when the model numbered it `[3]`. A number cited twice is placed once, * at its first mention. * * `content` is the flat answer text. A segmented message has to be flattened by * the caller — citation markers live in text segments, and this function * deliberately does not know what a segment is. */ export declare function splitCitedSources(sources: ChatSource[] | undefined, content: string): CitedSources; //# sourceMappingURL=cited-sources.d.ts.map