import { TextGlyph } from '../text-structure'; /** * Internal helper that maps decoded text segments to glyphs and synthesizes replaced TJ arrays. * * @private */ export declare class _TextGlyphMapper { /** * Original text segment captured from the content stream. * * @private */ _text: string; /** * Glyphs aligned with the decoded text. * * @private */ _glyph: TextGlyph[]; /** * Whether this mapper is operating on hex-encoded text. * * @private */ _isHex: boolean; text: string; glyph: TextGlyph[]; /** * Applies PDF string escaping to parentheses, backslashes and control characters. * * @private * @param {string} text Plain text input. * @returns {string} Escaped text suitable for literal strings. */ _applyEscapeSequence(text: string): string; /** * Builds final TJ array content by concatenating original and replacement segments. * * @private * @returns {string} The emitted TJ array text. */ _getText(): string; /** * Trims the first `glyphs` characters from the literal text being emitted. * * @private * @param {string} text Current unconsumed literal text. * @param {TextGlyph[]} glyphs Replacement glyphs that determine the trim length. * @returns {string} Remaining text after trimming. */ _replacedText(text: string, glyphs: TextGlyph[]): string; /** * Computes the numeric kerning width to represent the replaced segment in a TJ array. * * @private * @param {TextGlyph[]} glyphs Replacement glyph sequence. * @returns {number} The cumulative width value to emit. */ _getReplacedCharacter(glyphs: TextGlyph[]): number; }