import { ColorType } from "./color"; import { BorderType } from "./line"; import { ParagraphPropsType, ParagraphType, RowPropsType } from "./text"; export type TableTcStyle = { background?: ColorType; border?: Record; }; export type TableTcTxStyle = { color: ColorType; bold?: boolean; }; export type TableStyle = { tcStyle?: TableTcStyle; tcTxStyle?: TableTcTxStyle; }; export type TablePropsType = { tableStyleId: string; bandCol?: boolean; bandRow?: boolean; firstCol?: boolean; firstRow?: boolean; lastCol?: boolean; lastRow?: boolean; }; export type TableGridType = { gridCol: Array<{ width: number; }>; }; export type TableTdType = { props: { border: { right?: BorderType | null; left?: BorderType | null; top?: BorderType | null; bottom?: BorderType | null; }; marB?: number; marT?: number; marL?: number; marR?: number; anchor?: string; rowSpan?: number; gridSpan?: number; vMerge?: boolean; hMerge?: boolean; background?: ColorType; }; paragraphs: Array; inheritTcStyle?: Partial; inheritTcTxStyle?: Partial; }; export type TableTrType = { props: { height: number; }; td: Array; };