import { Wtbl } from '../document';
import { Region, RegionOptions } from './Region';
import { RegionJson } from '../types';
import { DataGroup2DRegion, DataGroup2DRegionOptions } from './DataGroup2DRegion';
export type _2DTableWidgetPropsMeta = {
    /** 引用填充（撑满固定表）*/
    autoFill: boolean;
    refColField: string | undefined;
    refRowField: string | undefined;
    [key: string]: any;
};
export type _2DTableWidgetMeta = {
    props: _2DTableWidgetPropsMeta;
};
export type _2DTableRegionOptions = RegionOptions & {
    name: string;
    valuePath: string;
    widgetMeta: _2DTableWidgetMeta;
    itemRegion?: DataGroup2DRegion;
};
export type _2DTableRegionJson = RegionJson & {
    name: string;
    valuePath: string;
    widgetMeta: _2DTableWidgetMeta;
    itemRegion?: any;
};
export declare class _2DTableRegion extends Region {
    type: "2d-table";
    name: string;
    valuePath: string;
    widgetMeta: _2DTableWidgetMeta;
    itemRegion?: DataGroup2DRegion;
    constructor(options: _2DTableRegionOptions);
    /**
     * 序列化为 JSON 对象
     */
    toJSON(): _2DTableRegionJson;
    /**
     * 从 JSON 对象还原
     */
    static fromJSON(json: _2DTableRegionJson, table: Wtbl): _2DTableRegion;
    setItemRegion(options: Omit<DataGroup2DRegionOptions, 'table'>): DataGroup2DRegion;
    removeItemRegion(): void;
}
