import type { Node as SyntaxNode } from "web-tree-sitter"; import type { SourceRange } from "./types.js"; export declare const lineStartsOf: (source: string) => number[]; export declare const indexToRange: (source: string, lineStarts: number[], startIndex: number, endIndex: number) => SourceRange; export declare const toRange: (node: SyntaxNode, source?: string) => SourceRange; export declare const findMatchingBraceIndex: (source: string, openBraceIndex: number) => number; export declare const rangeContains: (outer: SourceRange, inner: SourceRange) => boolean; export declare const mergeRanges: (start: SourceRange, end: SourceRange) => SourceRange; export declare const textOf: (node: SyntaxNode, source: string) => string; export declare const stripQuotes: (value: string) => string; export declare const isPresentNode: (node: SyntaxNode | null) => node is SyntaxNode; export declare const cacheUtf8BytesForTests: (source: string) => number; export declare const getUtf8CacheStateForTests: () => { hasCache: boolean; byteLength: number; utf8Version: number; lineStartsVersion: number; }; export declare const resetUtf8CacheForTests: () => void; //# sourceMappingURL=tree.d.ts.map