import type { SearchResult } from "../types.js"; export interface PromptOptions { includeCitations?: boolean; systemHint?: string; } export declare function buildSystemPrompt(options?: PromptOptions): string; export declare function buildUserPrompt(question: string, context: SearchResult[], options?: PromptOptions): string; /** A passage the answer cited as [n]. */ export interface Citation { /** The number used in the answer, e.g. 2 for "[2]". */ n: number; source: string; chunk: number; page?: number; pageEnd?: number; section?: string; /** The cited passage. */ text: string; } /** * The passages cited in an answer, in order of first citation. Understands * "[2]", "[1][3]" and "[1, 3]"; numbers outside the context are ignored. */ export declare function extractCitations(answer: string, context: SearchResult[]): Citation[];