import type { StJc } from './generated/wml-simple-types.js'; import type { Paragraph } from './model.js'; import { type XmlElement } from './xml.js'; export type ParagraphAlign = 'left' | 'center' | 'right' | 'justify'; /** Maps a full `ST_Jc` value to the renderer's alignment; `start`/`end` follow the paragraph direction. */ export declare function alignFromJustification(jc: StJc, rtl: boolean): ParagraphAlign | undefined; /** * The `w:jc` value to write. `justification` (the exact value read from the file) is only * authoritative while `align` still equals what it implies; once an editor changes `align` alone, * the stale `justification` is ignored and `align` is written. */ export declare function paragraphJustification(paragraph: Paragraph): StJc | undefined; export interface ParsedJustification { /** Renderer alignment derived from `justification` and the local `w:bidi`. */ align?: ParagraphAlign; /** The exact `ST_Jc` value read from the file, kept so it round-trips unchanged. */ justification?: StJc; } /** Parses `w:jc` in a `w:pPr`; invalid values are dropped with a parse warning. */ export declare function parseJustification(pPr: XmlElement | undefined): ParsedJustification; //# sourceMappingURL=paragraph-alignment.d.ts.map