import { Wtbl } from '../../document';
import { RegionJson } from '../../types';
export type CellPos = {
    row: number;
    col: number;
};
export type RegionOptions = {
    id?: string;
    table: Wtbl;
    start: CellPos;
    end: CellPos;
};
/**
 * 基础区域类
 */
export declare abstract class Region {
    id: string;
    abstract type: string;
    table: Wtbl;
    start: CellPos;
    end: CellPos;
    get rowCount(): number;
    get colCount(): number;
    get cellCount(): number;
    constructor(options: RegionOptions);
    /**
     * 检查指定的行列位置是否在当前区域内
     */
    contains(row: number, col: number): boolean;
    toJSON(): RegionJson;
}
