import { PdfColor } from '@syncfusion/ej2-pdf'; /** * Represents the PDF text rendering state (font, matrices, spacing, color). * * @private */ export declare class _TextState { /** Current transformation matrix (CTM) for user space to device space. * * @private */ _ctm: number[]; /** Current font name in use. * * @private */ _fontName: string; /** Current font size in use. * * @private */ _fontSize: number; /** Current font in use. * * @private */ _font: any; /** Current font matrix in use. * * @private */ _fontMatrix: number[]; /** Current text matrix in use. * * @private */ _textMatrix: number[]; /** Current textline matrixin use. * * @private */ _textLineMatrix: number[]; /** Character spacing. * * @private */ _charSpacing: number; /** Word spacing. * * @private */ _wordSpacing: number; /** Text Leading. * * @private */ _leading: number; /** Horizontal text scale. * * @private */ _textHScale: number; /** Text rise. * * @private */ _textRise: number; /** Identity matrix constant. * * @private */ _identityMatrix: number[]; /** Default font matrix. * * @private */ _fontIdentityMatrix: number[]; /** Current fill color. * * @private */ _textColor: PdfColor; constructor(); /** * Set the current text matrix (Tm). * * @private * @param {number} a - m0 * @param {number} b - m1 * @param {number} c - m2 * @param {number} d - m3 * @param {number} e - m4 (translate x) * @param {number} f - m5 (translate y) * @returns {void} nothing */ _setTextMatrix(a: number, b: number, c: number, d: number, e: number, f: number): void; /** * Set the current text line matrix (Tlm). * * @private * @param {number} a - m0 * @param {number} b - m1 * @param {number} c - m2 * @param {number} d - m3 * @param {number} e - m4 (translate x) * @param {number} f - m5 (translate y) * @returns {void} nothing */ _setTextLineMatrix(a: number, b: number, c: number, d: number, e: number, f: number): void; /** * Translate the current text matrix by (x,y). * * @private * @param {number} x - translation x * @param {number} y - translation y * @returns {void} nothing */ _translateTextMatrix(x: number, y: number): void; /** * Translate the current text line matrix by (x,y). * * @private * @param {number} x - translation x * @param {number} y - translation y * @returns {void} nothing */ _translateTextLineMatrix(x: number, y: number): void; /** * Perform a carriage return using the current leading and update Tm from Tlm. * * @private * @returns {void} nothing */ _carriageReturn(): void; /** * Create a shallow clone of this text state (arrays are copied). * * @private * @returns {any} cloned state */ _clone(): any; } /** * Tracks graphic/text state stack and CTM transformations. * * @private */ export declare class _GraphicState { /** * Current active text state. * * @private */ _state: _TextState; /** * Create a new _GraphicState. * * @private */ _stateStack: any; constructor(currentState?: _TextState); /** * Save the current state onto the stack and clone it for mutation. * * @private * @returns {void} nothing */ _save(): void; /** * Restore the previous state from the stack if available. * * @private * @returns {void} nothing */ _restore(): void; /** * Apply an affine transform to the current CTM. * * @private * @param {number[]} args - matrix [a,b,c,d,e,f] to multiply into CTM * @returns {void} nothing */ _transform(args: number[]): void; /** * Multiply two affine matrices. * * @private * @param {number[]} m1 - left matrix * @param {number[]} m2 - right matrix * @returns {number[]} product matrix */ _transformMatrix(m1: number[], m2: number[]): number[]; }