import { ColorType } from "./color"; export type TextStyle = Record; export type Spacing = { type: "percent" | "points"; value: number; }; export type Bullet = BulletNone | BulletChar | BulletAutoNum | BulletBlip; export type BulletNone = { type: "none"; }; export type BulletChar = { type: "char"; char: string; typeface?: string; }; export type BulletAutoNum = { type: "autoNum"; autoNumType: string; typeface?: string; }; export type BulletBlip = { type: "blip"; path: string; }; export type ParagraphPropsType = { level?: string; align?: string; marginLeft?: number; indent?: number; lineHeight?: Spacing; spaceBefore?: Spacing; spaceAfter?: Spacing; bullet?: Bullet; defaultTabSize?: number; }; export type FontType = "latin" | "ea" | "cs"; export type Typefaces = { [key in FontType]?: string; }; export type RowPropsType = { lang?: string; size?: number; bold?: boolean; italic?: boolean; underline?: string; strike?: string; color?: ColorType; background?: ColorType; typefaces?: Typefaces; [key: string]: any; }; export type TextPropsType = { anchor?: string; rtlCol?: boolean; bIns?: number; normAutofit?: { fontScale?: number; lnSpcReduction?: number; }; [key: string]: any; }; export type ParagraphRowType = { isBr: true; } | { props: RowPropsType; text: string; }; export type ParagraphType = { props: ParagraphPropsType; inheritProps: Record; inheritRProps: RowPropsType; endParaRProps: RowPropsType; rows: Array; };