import { BookRange, TextChunk, TextProvider, TextSearchResult } from './location'; export interface StaticTextProviderOptions { filterChunk?(chunk: TextChunk, range: BookRange): boolean; getRange?(chunk: TextChunk, index: number): BookRange | null | undefined; } export declare function createStaticTextProvider(chunks: readonly TextChunk[] | (() => readonly TextChunk[]), options?: StaticTextProviderOptions): TextProvider; export declare function searchTextChunks(chunks: readonly TextChunk[], query: string, getRange?: (chunk: TextChunk, index: number) => BookRange | null | undefined): TextSearchResult[]; //# sourceMappingURL=text-provider.d.ts.map