import type { PdfIndex, RetrievedExcerpts } from "./types.js"; /** Default per-LLM-call PDF excerpt budget (characters). */ export declare const PDF_EXCERPT_BUDGET = 1500; /** * BM25-score every chunk in the index against `query`, then pack the highest * scorers into a character budget. Returns formatted excerpts with a * `[source: §
]` header so the LLM can attribute claims. * * Safe to call when the index is empty or undefined — returns no excerpts. */ export declare function retrieveExcerpts(index: PdfIndex | undefined, query: string, budgetChars?: number): RetrievedExcerpts; /** * Format excerpts as a single labelled block for prompt injection. Returns * empty string when no excerpts — callers can concatenate unconditionally. */ export declare function formatExcerptBlock(retrieved: RetrievedExcerpts, label?: string): string; //# sourceMappingURL=retrieve.d.ts.map