import { ByteArray } from '../types.js'; /** * Escapes special characters in a PDF string according to PDF specification. * Escapes parentheses, backslashes, and control characters (\n, \r, \t, \b, \f). * * @param bytes - The byte array or string to escape. * @returns A new byte array with escaped characters. * * @example * ```typescript * escapeString('Hello (World)') // Escapes the parentheses * ``` */ export declare function escapeString(bytes: ByteArray | string): ByteArray;