import * as wasm from "./pkg"; import { TableAlignmentType, TableLayoutType, TableProperty } from "./table"; import { RunProperty, VertAlignType, RunFonts } from "./run-property"; import { AlignmentType, LineSpacing, ParagraphProperty, SpecialIndentKind } from "./paragraph-property"; import { BorderType } from "./border"; import { WidthType } from "."; export type StyleType = "paragraph" | "character" | "numbering" | "table"; export declare class Style { _styleId: string; _name: string; _styleType: StyleType; _runProperty: RunProperty; _paragraphProperty: ParagraphProperty; _tableProperty: TableProperty; _basedOn: string | null; _link: string | null; _qFormat: boolean; _uiPriority: number | null; _semiHidden: boolean; _unhideWhenUsed: boolean; constructor(id: string, type: StyleType); name: (n: string) => this; basedOn: (n: string) => this; link: (n: string) => this; qFormat: (v: boolean) => this; uiPriority: (v: number) => this; semiHidden: () => this; unhideWhenUsed: () => this; style(style: string): this; size(size: number): this; color(color: string): this; highlight(color: string): this; vertAlign(vertAlign: VertAlignType): this; bold(): this; strike(): this; dstrike(): this; italic(): this; underline(type: string): this; vanish(): this; fonts(fonts: RunFonts): this; characterSpacing(characterSpacing: number): this; fitText(val: number, id?: number): this; delete(author: string, date: string): this; insert(author: string, date: string): this; textBorder(type: BorderType, size: number, space: number, color: string): this; paragraphProperty: (p: ParagraphProperty) => this; runProperty: (p: RunProperty) => this; align(type: AlignmentType): this; indent(left: number, specialIndentKind?: SpecialIndentKind, specialIndentSize?: number): this; numbering(id: number, level: number): this; lineSpacing(spacing: LineSpacing): this; keepNext(v: boolean): this; keepLines(v: boolean): this; snapToGrid(v: boolean): this; pageBreakBefore(v: boolean): this; widowControl(v: boolean): this; outlineLevel(v: number): this; tableIndent(v: number): this; tableAlign(v: TableAlignmentType): this; layout(l: TableLayoutType): this; width(w: number): this; cellMargins(top: number, right: number, bottom: number, left: number): this; cellMarginTop(v: number, t: WidthType): this; cellMarginLeft(v: number, t: WidthType): this; cellMarginRight(v: number, t: WidthType): this; cellMarginBottom(v: number, t: WidthType): this; buildStyleType: () => wasm.StyleType.Paragraph | wasm.StyleType.Character | wasm.StyleType.Numbering | wasm.StyleType.Table; buildWasmObject: () => wasm.Style; }