export interface ChatFindTextSegment { node: Text; /** Offset of the node's first character in {@link ChatFindTextContent.text}. */ start: number; } export interface ChatFindTextContent { text: string; segments: ChatFindTextSegment[]; } /** * Reads the searchable text of rendered chat content. The matcher reads it from a detached render and the * highlighter from the mounted DOM, so match offsets computed on the one are valid in the other. */ export declare namespace ChatFindText { /** The concatenated text nodes under `root`, skipping subtrees that do not hold visible text. */ function collect(root: Node): ChatFindTextContent; /** Non-breaking spaces (e.g. from ` ` in markdown) are searched as plain spaces; the length is unchanged. */ function normalize(text: string): string; } //# sourceMappingURL=chat-find-text.d.ts.map