export type HorizontalAlignment = 'general' | 'left' | 'center' | 'right' | 'fill' | 'justify' | 'centerContinuous' | 'distributed'; export type VerticalAlignment = 'top' | 'center' | 'bottom' | 'justify' | 'distributed'; export declare const HORIZONTAL_ALIGNMENTS: ReadonlyArray; export declare const VERTICAL_ALIGNMENTS: ReadonlyArray; export interface Alignment { readonly horizontal?: HorizontalAlignment; readonly vertical?: VerticalAlignment; /** 0..180 (degrees) OR 255 (vertical stacked text). */ readonly textRotation?: number; readonly wrapText?: boolean; readonly shrinkToFit?: boolean; /** 0..255 indent levels. */ readonly indent?: number; /** -255..255 relative indent. */ readonly relativeIndent?: number; readonly justifyLastLine?: boolean; /** 0 = context-dependent, 1 = LTR, 2 = RTL. */ readonly readingOrder?: number; } export declare function makeAlignment(opts?: Partial): Alignment; export declare const DEFAULT_ALIGNMENT: Alignment; /** * Translate an {@link Alignment} to a CSS-property record suitable for * HTML preview. `horizontal` → `text-align`, `vertical` → * `vertical-align` (table-cell semantics), `wrapText` → `white-space: * pre-wrap`, `textRotation` → `transform: rotate(<-deg>)` (Excel rotates * counter-clockwise relative to CSS) plus `transform-origin` to keep * the text anchored, and `indent` → `padding-left: em`. `255` * stacked-text rotation maps to a 180° flip with `writing-mode`. * * Empty / undefined Alignment returns `{}`. */ export declare function alignmentToCss(alignment: Alignment | undefined): Record;