import { NumberFormat } from "./numberingUtils"; export interface AbstractNum { abstractNumId: string; multiLevelType: "multilevel" | "hybridMultilevel"; styleLink?: string; lvl: Record; } export interface Lvl { abstractNumId: string; ilvl: string; start: number; numFmt: NumberFormat; pStyle?: string; lvlText: string; lvlJc?: "left" | "center" | "right"; pPr?: PPr; rPr?: RPr; numId?: string; } export interface Ind { left?: number; hanging?: number; firstLineChars?: number; firstLine?: number; } export interface Num { numId: string; abstractNum: AbstractNum; } export interface StyleDef { styleId: string; isDefault: boolean; customStyle: boolean; name: string; basedOn: string; type: "paragraph" | "character" | "table" | "numbering"; pPr?: PPr; rPr?: RPr; tblPr?: TblPr; tblCellMar?: TblCellMar; tblGrid?: GridCol[]; } export interface WAndType { w?: string; type?: "auto" | "dxa" | "nil" | "pct"; } export interface Spacing { after?: number; before?: number; line?: number; lineRule?: "auto" | "exact" | "atLeast"; } export interface PBdr { top?: number; left?: number; bottom?: number; right?: number; between?: number; } export interface NumPr { numId: string; ilvl: number; } export interface RFonts { cs?: string; hAnsi?: string; ascii?: string; eastAsia?: string; hint?: string; asciiTheme?: string; eastAsiaTheme?: string; hAnsiTheme?: string; cstheme?: string; } export interface ImgDef { _id: string; name: string; url: string; } export interface PPr { ind?: Ind; spacing?: Spacing; numPr?: NumPr; outlineLvl?: number; jc?: "left" | "center" | "right"; fill?: string; pBdr?: PBdr; rPr?: RPr; pStyle?: string; } export interface RPr { b?: boolean; i?: boolean; u?: "single" | "double" | "words" | "none"; strike?: boolean; sz?: number; rFonts?: RFonts; color?: string; highlight?: string; fill?: string; kern?: number; rStyle?: string; } export interface TblBorder { val?: string; sz?: string; space?: string; color?: string; } export interface TblBorders { top?: TblBorder; left?: TblBorder; bottom?: TblBorder; right?: TblBorder; insideH?: TblBorder; insideV?: TblBorder; } export interface TblPr { tblStyle?: string; tblW?: WAndType; tblInd?: WAndType; tblLook?: Record; tblCellMar?: TblCellMar; tblBorders?: TblBorders; } export interface TrPr { vAlign?: "top" | "center" | "bottom"; fill?: string; trHeight?: number; tblBorders?: TblBorders; } export interface TcPr { vMerge?: "restart" | "continue" | any; vAlign?: "top" | "center" | "bottom"; fill?: string; gridSpan?: number; tcW?: WAndType; tcBorders?: TblBorders; tcMar?: TblCellMar; } export declare type ContentType = "doc" | "p" | "img" | "br" | "div.page-break" | "table" | "tr" | "td" | "list" | "w_r" | "span" | "tab" | "sectPr" | "footerReference" | "headerReference" | "pgSz" | "pgMar" | "pgNumType" | "cols" | "titlePg" | "docGrid"; export interface GridCol { w: number; } export interface TblCellMar { top?: WAndType; left?: WAndType; bottom?: WAndType; right?: WAndType; } export interface WordDataProps { type?: ContentType; items?: WordDataProps[]; v?: string; pPr?: PPr; rPr?: RPr; tblPr?: TblPr; tblGrid?: GridCol[]; trPr?: TrPr; tcPr?: TcPr; _attr?: Record; CompProps?: Record; _parent?: WordDataProps; _index?: number; } export declare const TagMap: Record; export declare const ElMap: Record;