import * as wasm from "./pkg/docx_wasm"; import { BorderType } from "./border"; import { Shading } from "./shading"; export type TextBorder = { borderType: BorderType; color: string; space: number; size: number; }; export type FitText = { val: number; id?: number; }; export type VertAlignType = "baseline" | "superscript" | "subscript"; export type RunPropertyDel = { author: string; date: string; }; export type RunPropertyIns = { author: string; date: string; }; export declare class RunProperty { _style?: string; _size?: number; _color?: string; _highlight?: string; _vertAlign?: VertAlignType; _bold?: boolean; _italic?: boolean; _strike?: boolean; _dstrike?: boolean; _caps?: boolean; _underline?: string; _vanish?: boolean; _fonts?: RunFonts; _characterSpacing?: number; _fitText?: FitText; _textBorder?: TextBorder; _ins?: RunPropertyIns; _del?: RunPropertyDel; _shading?: Shading; style(style: string): this; size(size: number): this; color(color: string): this; highlight(color: string): this; vertAlign(vertAlign: VertAlignType): this; bold(): this; disableBold(): this; strike(): this; disableStrike(): this; dstrike(): this; disableDstrike(): this; italic(): this; disableItalic(): this; caps(): this; underline(type: string): this; vanish(): this; fonts(fonts: RunFonts): this; spacing(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; shading(type: string, color: string, fill: string): this; } export declare const convertBorderType: (t: BorderType) => wasm.BorderType.Nil | wasm.BorderType.None | wasm.BorderType.Single | wasm.BorderType.Thick | wasm.BorderType.Double | wasm.BorderType.Dotted | wasm.BorderType.Dashed | wasm.BorderType.DotDash | wasm.BorderType.DotDotDash | wasm.BorderType.Triple; export declare const createDefaultRunProperty: () => RunProperty; export declare class RunFonts { _ascii?: string; _hiAnsi?: string; _eastAsia?: string; _cs?: string; _asciiTheme?: string; _hiAnsiTheme?: string; _eastAsiaTheme?: string; _csTheme?: string; _hint?: string; ascii(f: string): this; hiAnsi(f: string): this; cs(f: string): this; eastAsia(f: string): this; asciiTheme(f: string): this; hiAnsiTheme(f: string): this; csTheme(f: string): this; eastAsiaTheme(f: string): this; hint(f: string): this; buildWasmObject: () => wasm.RunFonts; } export declare const setRunProperty: (target: T, property: RunProperty) => T; export declare const createRunProperty: (property: RunProperty) => wasm.RunProperty;