import { ElementNode } from '../util/xml.js'; import { ColorInput } from '../types/index.js'; import { KeyMap } from '../util/keyMap.js'; import { IDMLStylesContext } from './Styles.js'; export type ParagraphStyleInput = { appliedFont?: string; fontSize?: number; autoLeading?: number; leading?: number; spaceBefore?: number; spaceAfter?: number; align?: Align; fillColor?: ColorInput; strokeColor?: ColorInput; strokeWeight?: number; strokeTint?: number; skew?: number; capitalization?: Capitalization; fontStyle?: string; underline?: boolean; strikeThrough?: boolean; paragraphShadingOn?: boolean; paragraphShadingColor?: ColorInput; paragraphShadingTint?: number; paragraphShadingTopOffset?: number; paragraphShadingBottomOffset?: number; paragraphShadingLeftOffset?: number; paragraphShadingRightOffset?: number; hyphenation?: boolean; appliedLanguage?: string; horizontalScale?: number; ruleAbove?: boolean; ruleAboveWeight?: number; ruleAboveColor?: ColorInput; ruleAboveTint?: number; ruleAboveOffset?: number; ruleBelow?: boolean; ruleBelowWeight?: number; ruleBelowColor?: ColorInput; ruleBelowTint?: number; ruleBelowOffset?: number; }; export type Align = 'left' | 'right' | 'center' | 'justify' | 'justifyLeft' | 'justifyRight' | 'justifyCenter' | 'justifyAll'; export type Capitalization = 'normal' | 'smallCaps' | 'allCaps'; export declare const alignMap: KeyMap<{ readonly LeftAlign: "left"; readonly RightAlign: "right"; readonly CenterAlign: "center"; readonly LeftJustified: "justifyLeft"; readonly RightJustified: "justifyRight"; readonly CenterJustified: "justifyCenter"; readonly FullyJustified: "justifyAll"; }>; export declare const capitalizationMap: KeyMap<{ readonly Normal: "normal"; readonly SmallCaps: "smallCaps"; readonly AllCaps: "allCaps"; }>; export declare class ParagraphStyle { id: string; private context; name?: string; extendedKeyboardShortcut?: number[]; includeClass?: boolean; styleUID?: string; imported?: boolean; splitDocument?: boolean; emitCss?: boolean; appliedFont?: string; fontSize?: number; autoLeading?: number; leading?: number; align?: Align; fillColorId?: string; tint?: number; strokeColorId?: string; strokeWeight?: number; strokeTint?: number; skew?: number; capitalization?: Capitalization; fontStyle?: string; tracking?: number; baselineShift?: number; underline?: boolean; strikeThrough?: boolean; paragraphShadingOn?: boolean; paragraphShadingColorId?: string; paragraphShadingTint?: number; paragraphShadingTopOffset?: number; paragraphShadingBottomOffset?: number; paragraphShadingLeftOffset?: number; paragraphShadingRightOffset?: number; spaceBefore?: number; spaceAfter?: number; leftIndent?: number; rightIndent?: number; firstLineIndent?: number; hyphenation?: boolean; appliedLanguage?: string; horizontalScale?: number; ruleAbove?: boolean; ruleAboveWeight?: number; ruleAboveColorId?: string; ruleAboveTint?: number; ruleAboveOffset?: number; ruleBelow?: boolean; ruleBelowWeight?: number; ruleBelowColorId?: string; ruleBelowTint?: number; ruleBelowOffset?: number; alignToBaseline?: boolean; rootParagraphStyleGroupId?: string; constructor(id: string, opts: { name?: string; extendedKeyboardShortcut?: number[]; includeClass?: boolean; styleUID?: string; imported?: boolean; splitDocument?: boolean; emitCss?: boolean; appliedFont?: string; fontSize?: number; autoLeading?: number; leading?: number; align?: Align; fillColorId?: string; tint?: number; strokeColorId?: string; strokeWeight?: number; strokeTint?: number; skew?: number; capitalization?: Capitalization; fontStyle?: string; tracking?: number; baselineShift?: number; underline?: boolean; strikeThrough?: boolean; paragraphShadingOn?: boolean; paragraphShadingColorId?: string; paragraphShadingTint?: number; paragraphShadingTopOffset?: number; paragraphShadingBottomOffset?: number; paragraphShadingLeftOffset?: number; paragraphShadingRightOffset?: number; spaceBefore?: number; spaceAfter?: number; leftIndent?: number; rightIndent?: number; firstLineIndent?: number; hyphenation?: boolean; appliedLanguage?: string; horizontalScale?: number; ruleAbove?: boolean; ruleAboveWeight?: number; ruleAboveColorId?: string; ruleAboveTint?: number; ruleAboveOffset?: number; ruleBelow?: boolean; ruleBelowWeight?: number; ruleBelowColorId?: string; ruleBelowTint?: number; ruleBelowOffset?: number; alignToBaseline?: boolean; rootParagraphStyleGroupId?: string; }, context: IDMLStylesContext); serialize(): ElementNode; toParagraphStyleInput(): ParagraphStyleInput; equals(input: ParagraphStyleInput): boolean | undefined; static parseElement(element: Element, context: IDMLStylesContext): ParagraphStyle; } //# sourceMappingURL=ParagraphStyle.d.ts.map