import { Paragraph } from './Paragraph';
import { LayoutGroup, LayoutGroupOptions } from './base';
import { IContainerMetrics, Border } from './types';
import { Table } from './Table';
import { TableRow } from './TableRow';
import { RepeatingWidgetMeta } from '../model/logic/RepeatingRegion';
import { BoundedWidgetMeta } from '../model/logic/BoundedRegion';
export interface TableCellOptions extends LayoutGroupOptions {
    colspan?: number;
    rowspan?: number;
    mergeFromId?: string;
    mergeRefRowOffset?: number;
    mergeRefColOffset?: number;
    subRenderer?: SubRenderer;
}
export type SubRenderer = {
    id: string;
    type: 'sub-table' | 'fixed-table' | 's-thead';
    dataIndex?: number;
    valuePath: string;
    widgetMeta?: RepeatingWidgetMeta | BoundedWidgetMeta;
};
export declare class TableCell extends LayoutGroup<Paragraph> implements IContainerMetrics {
    component: "tableCell";
    colspan: number;
    rowspan: number;
    mergeFromId?: string;
    mergeRefRowOffset?: number;
    mergeRefColOffset?: number;
    backgroundColor?: string;
    border?: Border;
    /** 设计渲染时 */
    subRenderer?: SubRenderer;
    parent: TableRow;
    get table(): Table;
    get padding(): [number, number, number, number];
    constructor(options: TableCellOptions);
    get width(): number;
    get height(): number;
    get contentMaxWidth(): number;
    get contentMaxHeight(): number;
    get isMerged(): boolean;
    getContentHeight(): number;
    getMinHeight(): number;
    getRemainingSize(fixedHeight?: boolean): number;
    layout(x: number, y: number): void;
}
