import { Paragraph } from "./paragraph"; import { Table } from "./table"; import { Shading } from "./shading"; import { TableCellBorders } from "./table-cell-borders"; import { TableCellBorderPosition, TableCellBorder } from "./table-cell-border"; import * as wasm from "./pkg"; import { TableOfContents } from "./table-of-contents"; import { WidthType } from "."; export type VMergeType = "restart" | "continue"; export type VAlignType = "top" | "center" | "bottom"; export type TextDirectionType = "lr" | "lrV" | "rl" | "rlV" | "tb" | "tbV" | "tbRlV" | "tbRl" | "btLr" | "lrTbV"; export declare const toTextDirectionWasmType: (t: TextDirectionType) => wasm.TextDirectionType; export type CellProperty = { borders: TableCellBorders; verticalMerge?: VMergeType; verticalAlign?: VAlignType; gridSpan?: number; width?: number; textDirection?: TextDirectionType; shading?: Shading; margins?: { top?: { val: number; type: WidthType; }; left?: { val: number; type: WidthType; }; bottom?: { val: number; type: WidthType; }; right?: { val: number; type: WidthType; }; }; }; export declare class TableCell { children: (Paragraph | Table | TableOfContents)[]; hasNumberings: boolean; property: CellProperty; addParagraph(p: Paragraph): this; addTableOfContents(t: TableOfContents): this; addTable(t: Table): this; verticalMerge(t: VMergeType): this; verticalAlign(t: VAlignType): this; gridSpan(v: number): this; width(v: number): this; shading(type: string, color: string, fill: string): this; textDirection(t: TextDirectionType): this; setBorder(border: TableCellBorder): this; clearBorder(position: TableCellBorderPosition): this; marginTop(v: number, t: WidthType): this; marginLeft(v: number, t: WidthType): this; marginRight(v: number, t: WidthType): this; marginBottom(v: number, t: WidthType): this; buildCellBorders(cell: wasm.TableCell): wasm.TableCell; build(): wasm.TableCell; }