import { ElementNode } from 'flat-svg'; import { ColorInput } from '../types/index.js'; import { KeyMap } from '../util/keyMap.js'; import { IDMLStylesContext } from './Styles.js'; export type ParagraphStyleInput = { appliedFont?: string; fontSize?: number; leading?: number; align?: Align; fillColor?: ColorInput; strokeColor?: ColorInput; strokeWeight?: number; strokeTint?: number; skew?: number; capitalization?: Capitalization; fontStyle?: string; underline?: boolean; strikeThrough?: boolean; }; 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 Justify: "justify"; readonly JustifyLeft: "justifyLeft"; readonly JustifyRight: "justifyRight"; readonly JustifyCenter: "justifyCenter"; readonly JustifyAll: "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; 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; spaceBefore?: number; spaceAfter?: number; leftIndent?: number; rightIndent?: number; firstLineIndent?: number; hyphenation?: boolean; 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; 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; spaceBefore?: number; spaceAfter?: number; leftIndent?: number; rightIndent?: number; firstLineIndent?: number; hyphenation?: boolean; alignToBaseline?: boolean; rootParagraphStyleGroupId?: string; }, context: IDMLStylesContext); serialize(): ElementNode; toParagraphStyleInput(): { appliedFont: string | undefined; fontSize: number | undefined; leading: number | undefined; align: Align | undefined; fillColor: ColorInput | undefined; strokeColor: ColorInput | undefined; strokeWeight: number | undefined; strokeTint: number | undefined; skew: number | undefined; capitalization: Capitalization | undefined; fontStyle: string | undefined; underline: boolean | undefined; strikeThrough: boolean | undefined; }; equals(input: ParagraphStyleInput): boolean | undefined; static parseElement(element: Element, context: IDMLStylesContext): ParagraphStyle; } //# sourceMappingURL=ParagraphStyle.d.ts.map