import { ResolvedColor } from './color'; import { ColorSource } from './color'; import { Margin } from './common'; export interface RunProperties { fontFamily?: string; fontSize?: number; bold?: boolean; italic?: boolean; underline?: boolean; strikethrough?: boolean; color?: ColorSource; resolvedColor?: ResolvedColor; baseline?: number; spacing?: number; lang?: string; } export interface TextRun { text: string; properties: RunProperties; isLineBreak?: boolean; } export type TextAlignment = 'left' | 'center' | 'right' | 'justify' | 'distributed'; export type VerticalAlignment = 'top' | 'middle' | 'bottom'; export interface BulletProperties { type: 'char' | 'autoNum' | 'none'; char?: string; autoNumType?: string; fontSize?: number; color?: ColorSource; resolvedColor?: ResolvedColor; font?: string; } export interface ParagraphProperties { alignment?: TextAlignment; level?: number; indent?: number; marginLeft?: number; lineSpacing?: number; spaceBefore?: number; spaceAfter?: number; bullet?: BulletProperties; defaultRunProps?: RunProperties; } export interface Paragraph { runs: TextRun[]; properties: ParagraphProperties; } export type AutofitType = 'none' | 'shrink' | 'resize'; export interface TextBody { paragraphs: Paragraph[]; bodyProperties: { anchor?: VerticalAlignment; anchorCtr?: boolean; wrap?: 'square' | 'none'; autofit?: AutofitType; margin?: Margin; numCols?: number; rot?: number; }; } //# sourceMappingURL=text.d.ts.map