export type ByteOffsetTable = { byteOffsetAt(utf16Index: number): number; }; /** * Maps a UTF-16 code-unit index to a UTF-8 byte offset in one pass. * tree-sitter reports `startIndex` in code units while a source anchor is * defined over bytes; on non-ASCII source the two diverge and a code-unit * index cuts a character in half. */ export declare function byteOffsetTable(source: string): ByteOffsetTable;