import { Wtbl } from '../document';
import { Region, RegionOptions } from './Region';
import { RegionJson } from '../types';
import { BoundedItemRegion, BoundedItemRegionOptions } from './BoundedItemRegion';
export type BoundedWidgetPropsMeta = {
    /** 引用填充（撑满固定表）*/
    autoFill: boolean;
    /**
     * 填充方向
     * @alias x 横向填充
     * @alias y 纵向填充
     */
    fillDirection: 'x' | 'y';
    [key: string]: any;
};
export type BoundedWidgetMeta = {
    props: BoundedWidgetPropsMeta;
};
export type BoundedRegionOptions = RegionOptions & {
    name: string;
    valuePath: string;
    widgetMeta: BoundedWidgetMeta;
    itemRegion?: BoundedItemRegion;
};
export type BoundedRegionJson = RegionJson & {
    name: string;
    valuePath: string;
    widgetMeta: BoundedWidgetMeta;
    itemRegion?: any;
};
export declare class BoundedRegion extends Region {
    type: "bounded";
    name: string;
    valuePath: string;
    widgetMeta: BoundedWidgetMeta;
    itemRegion?: BoundedItemRegion;
    constructor(options: BoundedRegionOptions);
    /**
     * 序列化为 JSON 对象
     */
    toJSON(): BoundedRegionJson;
    /**
     * 从 JSON 对象还原
     */
    static fromJSON(json: BoundedRegionJson, table: Wtbl): BoundedRegion;
    setItemRegion(options: Omit<BoundedItemRegionOptions, 'table'>): BoundedItemRegion;
    removeItemRegion(): void;
}
