/** * Physical length measurements for drawings, page margins, and related * internal authoring paths (API-RULES R4.1–R4.3). * * **Not part of the package root API.** Import only from this module inside * the library (or tests that exercise it). Callers must not rely on * `Cm` / `Emu` / `Inches` / `Mm` / `Pt` / `Px` / `isLength` / `Length` as * public exports from `@syncfusion/ej2-xlsx`. * * Internal base unit is EMU (English Metric Unit). * 1 inch = 914400 EMU, 1 pt = 12700 EMU — both exact. * * Citations: * - docs/api/API-RULES.md R4.1–R4.3 * - ECMA-376 drawing EMU; SpreadsheetML page margins in inches * * @private */ declare const lengthBrand: unique symbol; /** * A physical length used for drawing sizes and page margins, created with * unit helpers such as `Inches` or `Pt`. */ export declare type Length = number & { readonly [lengthBrand]: void; }; /** EMU per inch (exact). */ export declare const EMU_PER_INCH = 914400; /** EMU per centimeter (exact). */ export declare const EMU_PER_CM = 360000; /** EMU per millimeter (exact). */ export declare const EMU_PER_MM = 36000; /** EMU per point (exact; 72 pt = 1 in). */ export declare const EMU_PER_PT = 12700; /** EMU per CSS pixel at 96 DPI (914400 / 96). */ export declare const EMU_PER_PX_96DPI = 9525; /** @private * Length from inches. */ export declare function Inches(value: number): Length; /** @private * Length from centimeters. */ export declare function Cm(value: number): Length; /** @private * Length from millimeters. */ export declare function Mm(value: number): Length; /** @private * Length from typographic points (1/72 inch). */ export declare function Pt(value: number): Length; /** @private * Length from CSS pixels assuming **96 DPI** (API-RULES R4.1). */ export declare function Px(value: number): Length; /** @private * Escape-hatch constructor from raw EMU (API-RULES R4.1). */ export declare function Emu(value: number): Length; /** @private * True when `value` is a finite non-negative number (Length is a branded number). */ export declare function isLength(value: unknown): value is Length; /** Raw EMU for a {@link Length}. @private */ export declare function lengthToEmu(length: Length): number; /** * Convert length to inches (SpreadsheetML page-margin unit). * Half-away-from-zero rounding is applied by callers when serializing. * @private */ export declare function lengthToInches(length: Length): number; /** * Build a Length from an inches double (load path). * @private */ export declare function inchesToLength(inches: number): Length; /** * Format an inches double for OOXML attributes (trim trailing zeros). * @private */ export declare function formatInchesAttr(inches: number): string; export {};