export declare const MAX_MATCHES = 1000; /** The query's words in order, across any run of whitespace, in any case. */ export declare function findPattern(query: string): RegExp | null; /** Each place the query appears in scope's visible text, in reading order, * up to MAX_MATCHES. */ export declare function findRanges(scope: Element, query: string): Range[]; /** The text a reader sees in scope, as find reads it. */ export declare function visibleText(scope: Element): string; /** How many times the query appears in text, up to max. */ export declare function countMatches(text: string, query: string, max: number): number; /** The messages under root, without the composer that scrolls with them. */ export declare function transcriptOf(root: Element | null): Element | null; /** The message row a node is in, of those under scope. */ export declare function rowOf(node: Node | null | undefined, scope: Element): HTMLElement | null; /** Brings a match into the part of the transcript the composer doesn't cover, * a third of the way down, so the reader can read on from it. */ export declare function revealRange(range: Range): void;