import { ByteArray } from '../../types.js'; import { PdfToken } from '../tokens/token.js'; import { PdfObject } from './pdf-object.js'; export declare class PdfString extends PdfObject { /** * The raw bytes of the PDF string. */ private _raw; /** * Original bytes from the PDF file, including parentheses and escape sequences. * Used to preserve exact formatting for incremental updates. */ private _originalBytes?; constructor(raw: ByteArray | string, originalBytes?: ByteArray); get raw(): ByteArray; set raw(raw: ByteArray); /** * Checks if this string is UTF-16BE encoded (has UTF-16BE BOM). * UTF-16BE strings start with the byte order mark 0xFE 0xFF. */ get isUTF16BE(): boolean; set value(str: string); get value(): string; get isTrailingDelimited(): boolean; protected tokenize(): PdfToken[]; cloneImpl(): this; toJSON(): { type: string; value: string; }; trim(): string; get length(): number; }