import type { AgentKnowledgeOverrides, StreamPart, KnowledgeRetrievalResult, RetrievalCacheAdapter, SourceRef } from '../../types/index.js'; export interface CitationRetrievalProvider { retrieve(query: string, cache: RetrievalCacheAdapter | undefined, agentOverrides?: AgentKnowledgeOverrides, isVoice?: boolean): Promise<{ results: KnowledgeRetrievalResult[]; citations?: SourceRef[]; events: StreamPart[]; }>; } export interface CitationRetrievalResult { results: KnowledgeRetrievalResult[]; citations: SourceRef[]; events: StreamPart[]; } export declare function retrieveWithCitations(provider: CitationRetrievalProvider, query: string, cache: RetrievalCacheAdapter | undefined, agentOverrides?: AgentKnowledgeOverrides, isVoice?: boolean): Promise; export declare function normalizeCitations(results: KnowledgeRetrievalResult[], nativeCitations?: readonly SourceRef[]): SourceRef[];