import { IStoreState, ID, IRow } from '../../index.data'; import { SimpleNodeContext } from 'valor-app-utils/dist/tree/context'; import * as R from 'rambda'; import { IRowWithCell } from '../../SpreadSheetProvider/index.data'; /** * 根据row.id 找到 row */ export declare function getRow(state: IStoreState, id: ID): IRow; export declare function getRowIndex(state: IStoreState, id: ID): number; export declare function getRowWithCells(state: IStoreState, id: ID): IRowWithCell; /** * 获取当前选择的行 ( 返回单行 ) */ export declare function getSelectedRow(state: IStoreState): IRow | null; /** * 获取row的index export function getRowIndex(state: IStoreState, rowId: ID): number { return state.rows.findIndex(row => row.id + '' === rowId + ''); } */ /** * 根据cellId找到row */ export declare function getRowByCell(state: IStoreState, cellId: ID): IRow; export declare function getHostRows(state: IStoreState, i: number): ID[]; export declare function getRowi(state: IStoreState, rowId: ID): number; export declare function getPureTreeContext(state: IStoreState, treeContext: Record): R.Dictionary; export declare function isTreeRow(row: IRow): boolean;