import type { Cell, Row, RowData, TableInstance } from "../types.js"; export interface CoreRow { /** @internal */ _getAllCellsByColumnId: () => Record>; /** @internal */ _uniqueValuesCache: Record; /** @internal */ _valuesCache: Record; /** * The depth of the row (if nested or grouped) relative to the root row array. */ depth: number; /** * Returns all of the cells for the row. * * @inheritDoc */ getAllCells: () => Cell[]; /** * Returns the leaf rows for the row, not including any parent rows. * * @inheritDoc */ getLeafRows: () => Row[]; /** * Returns the parent row for the row, if it exists. * * @inheritDoc */ getParentRow: () => Row | undefined; /** * Returns the parent rows for the row, all the way up to a root row. * * @inheritDoc */ getParentRows: () => Row[]; /** * Returns a unique array of values from the row for a given columnId. */ getUniqueValues: (columnId: string) => TValue[]; /** * Returns the value from the row for a given columnId. */ getValue: (columnId: string) => TValue; /** * The resolved unique identifier for the row resolved via the `options.getRowId` * option. Defaults to the row's index (or relative index if it is a subRow). */ id: string; /** * The index of the row within its parent array (or the root data array). */ index: number; /** * The original row object provided to the table. If the row is a grouped row, the * original row object will be the first original in the group. */ original: TData; /** * An array of the original subRows as returned by the `options.getSubRows` option. */ originalSubRows?: TData[]; /** * If nested, this row's parent row id. */ parentId?: string; /** * An array of subRows for the row as returned and created by the * `options.getSubRows` option. * * @inheritDoc */ subRows: Row[]; } export declare const createRow: (table: TableInstance, id: string, original: TData, rowIndex: number, depth: number, subRows?: Row[], parentId?: string) => Row; //# sourceMappingURL=row.d.ts.map