import type { ColDef } from 'ag-grid-community'; /** 默认序号列的字段名;不对应任何数据字段,值由 valueGetter 按行位置生成 */ export declare const ARRAY_TABLE_INDEX_FIELD = "__arrayTableIndex"; /** schema 里含 ArrayTable.Index / ArrayBase.Index 之类的序号组件 */ export declare const containsIndexComponent: (schema: any) => boolean; /** * 表格是否已经自己写了序号列(某个可见列里放了 ArrayTable.Index)。 * 写了就不再加默认序号列,免得出现两列序号;「行号」等业务数据列不算序号列。@author nokecy */ export declare const hasOwnIndexColumn: (sources: Array<{ schema: any; display?: string; }>) => boolean; /** * 默认序号列:按行在表格里的位置编号(1 起),不依赖业务行号或主键,与列表页的序号一致。 * 固定在左侧、位于勾选列之后,不可隐藏/拖动/排序;合计等固定行不编号。 * 增删行、拖动换行后由 ArrayTable 在 onRowDataUpdated 里刷新本列,见 index.tsx。@author nokecy */ export declare const makeIndexColumn: () => ColDef;