import { AnyOrama, Result, Results, RawData, TypedDocument, SearchParamsFullText, Language } from '@orama/orama'; interface Position { start: number; length: number; } type OramaWithHighlight = T & { data: { positions: Record>>; }; }; type ResultWithPositions = Result & { positions: Record>; }; type SearchResultWithHighlight = Omit, 'hits'> & { hits: ResultWithPositions[]; }; type RawDataWithPositions = RawData & { positions: Record>>; }; declare function afterInsert(orama: T, id: string): Promise; declare function searchWithHighlight>(orama: T, params: SearchParamsFullText, language?: Language): Promise>; declare function saveWithHighlight(orama: T): RawDataWithPositions; declare function loadWithHighlight(orama: T, raw: RawDataWithPositions): void; export { OramaWithHighlight, Position, RawDataWithPositions, ResultWithPositions, SearchResultWithHighlight, afterInsert, loadWithHighlight, saveWithHighlight, searchWithHighlight };