import { PdfToken } from '../tokens/token.js'; import { PdfObject } from './pdf-object.js'; export declare class PdfName extends PdfObject { value: T; constructor(value: T); protected tokenize(): PdfToken[]; cloneImpl(): this; toJSON(): { type: string; value: T; }; /** * Escapes a PDF name according to PDF specification. * PDF names can't contain spaces or certain special chars except # for escaping. * * @param name - The name to escape * @returns The escaped name */ static escapeName(name: string): string; /** * Unescapes a PDF name by converting #XX hex sequences back to characters. * * @param escapedName - The escaped name with #XX sequences * @returns The unescaped name */ static unescapeName(escapedName: string): string; }