/** * The IR's one length unit: PostScript points (1/72 inch), as a branded number. * Readers convert their format-native units (twips, half-points, EMU, …) to `Pt` * at the boundary, and writers convert out the same way. The brand is shallow — * a `Pt` is assignable to `number` so layout arithmetic reads it freely; only * *constructing* one requires {@link pt} or a `*ToPt` converter. */ export type Pt = number & { readonly __brand: 'pt'; }; /** Brand a raw number as points. The number must already BE points. */ export declare function pt(value: number): Pt; export declare function twipsToPt(twips: number): Pt; /** Half-points (OOXML font sizes, `w:sz`): 2 half-points = 1 pt. */ export declare function halfPtToPt(halfPt: number): Pt; /** Eighths of a point (OOXML border widths, `w:sz` on borders): 8 = 1 pt. */ export declare function eighthPtToPt(eighthPt: number): Pt; /** English Metric Units (DrawingML): 914400 EMU = 1 inch = 72 pt → 12700 EMU = 1 pt. */ export declare function emuToPt(emu: number): Pt; /** CSS reference pixels: 96 px = 1 inch = 72 pt. */ export declare function pxToPt(px: number): Pt; /** Inches: 1 inch = 72 pt. */ export declare function inchToPt(inches: number): Pt; /** Millimetres: 25.4 mm = 1 inch = 72 pt. */ export declare function mmToPt(mm: number): Pt;