import type { ChatCitation, Scalars } from '../../../__generated__/graphql'; export type ChatCitationWithDisplayOrder = ChatCitation & { displayOrder: Scalars['Int']; }; /** * Extracts used citations from the given content string and returns an array of * ChatCitationWithDisplayOrder objects that are present in the content. * The function works for both [^{int}^] and [^{int}] citation patterns. * * @param content - The content string to extract citations from. * @param citations - The array of all available ChatCitation objects. * @returns - An array of ChatCitationWithDisplayOrder objects that are used in the content. */ declare const extractUsedCitations: (content: string, citations: ChatCitation[]) => ChatCitationWithDisplayOrder[]; export { extractUsedCitations };