import { IStoreState, ID, ICell, NumericFormat, ICellType } from '../../index.data'; import { _getCell } from './base'; /** * 根据 cell.id => cell */ export declare const getCell: typeof _getCell; /** * 使用i(行序) 与 j(列序) 查找单元格 * 已经考虑了合并单元格的情形 */ export declare function getCellByij(state: IStoreState, i: number, j: number, digMergeCell?: boolean, _martrixCache?: ICell[][]): ICell | undefined; export declare function getMatrix(state: IStoreState): ICell[][]; export declare function getCellsByijs(state: IStoreState, ijs: { i: number; j: number; }[]): ICell[]; export declare function getSelectedCellIds(state: IStoreState): ID[]; export declare function getCellByij_immediate(state: IStoreState, i: number, j: number): ICell; export declare function getCellsByijs_immediate(state: IStoreState, ijs: { i: number; j: number; }[]): ICell[]; /** * 注意会返回cell=null, 使用前需要过滤 */ export declare function getRangeByIj(state: IStoreState, startI: number, startJ: number, endI: number, endJ: number): ICell[][]; /** * 如果这个方法做到initStoreState里, 新增的行就要另外考虑, 所以为开发进度, 暂时这样做 * 根据 cell.id => cellType ( numeric | ...) */ export declare function getCellType(state: IStoreState, id: ID): ICellType; /** * 如果这个方法做到initStoreState里, 新增的行就要另外考虑, 所以为开发进度, 暂时这样做 */ export declare function getCellFormat(state: IStoreState, id: ID): NumericFormat | undefined; /** * 是否是编号类型单元格 */ export declare function isRowNoCell(state: IStoreState, id: ID): boolean; /** * 获取编号类型单元格的value * 需要保证 isRowNoCell(cellId) === true */ export declare function getRowNoCellValue(state: IStoreState, id: ID): { isLeaf: boolean; collapsed: boolean; path: number[]; } | null; export declare function getRowNoCellValueByRow(state: IStoreState, rowId: ID): { isLeaf: boolean; collapsed: boolean; path: number[]; }; /** * 单元格是否可以编辑 */ export declare function isCellEditable(state: IStoreState, id: ID): boolean; /** * 获取右侧第i个cell * 用途: 比如取价格单元格右侧的备注单元格 * 注意: 如果存在跨列, 则返回null */ export declare function getRightCell(state: IStoreState, id: ID, span?: number): ICell; export declare function getCellij(state: IStoreState, _cellId: ID): { i: number; j: number; }; export declare function fillij(state: IStoreState): IStoreState;