import type { SyntaxSpan } from '../internal/highlight/syntax.js'; interface ValueRange extends AbstractRange { disconnect(): void; getBoundingClientRect(): DOMRect; } interface HighlightableTextarea extends HTMLTextAreaElement { createValueRange(start: number, end: number): ValueRange; } type TextWindow = [from: number, to: number]; export declare const highlightRangeLimit = 4096; export declare function supportsValueHighlights(textarea: HTMLTextAreaElement): textarea is HighlightableTextarea; export declare function getWideLines(text: string): { lines: TextWindow[]; canClip: boolean; }; /** Finds the source windows to highlight, with a conservative horizontal window for wide unwrapped rows. */ export declare function getValueViewport(textarea: HighlightableTextarea, textLength: number, scanWideLines: () => ReturnType): { windows: TextWindow[]; horizontal?: { left: number; width: number; }; } | null | undefined; /** Owns only this textarea's ranges in the shared semantic highlight groups. */ export declare class ValueHighlights { #private; private readonly textarea; constructor(textarea: HighlightableTextarea); update(spans: SyntaxSpan[]): void; clear(): void; } export {};