/** * Build a short plain-text excerpt of `text` centered on the first matching * query term, for showing context under a search result. Falls back to the head * of the text when nothing matches. Word boundaries are respected so the excerpt * never starts or ends mid-word, and elisions are marked with an ellipsis. */ export declare function buildSnippet(text: string, query: string, maxLength?: number): string;