/** * Encode text as WinAnsiEncoding (CP-1252) bytes (ISO 32000-1 §D.2). Latin-1 is * passed through; the CP-1252 high range (smart quotes, dashes, €, …) is * remapped; anything else becomes `?`. * * @param text The string to encode. * @returns One byte per code point. */ export declare function encodeWinAnsi(text: string): Uint8Array; /** * Encode text as a PDF literal string body (ISO 32000-1 §7.3.4.2): WinAnsi * bytes with `(`, `)` and `\` backslash-escaped. The result is ready to be * wrapped in `(` … `)` within a content stream. * * @param text The string to encode. * @returns The escaped bytes (without the surrounding parentheses). */ export declare function encodeLiteralBytes(text: string): Uint8Array;