import { RawRelation, RawTable, RawTableList } from '../types'; /** * Transform tableList to objects. * @example * tableListToObjects([ * ['dimension', 'category'], * ['d1', 1] * ]) * // [{d1: 1}] * @throw * Throw `Error` when input is not a `RawTableList`. */ export declare function tableListToObjects(tableList: RawTableList): Record[]; /** * Transform tableList to table. * @example * tableListToTable([ * ['row', 'column', 'value'], * ['r1', 'c1', 1] * ]) * // [['r1'], ['c1'], [[1]]] * @throw * Throw `Error` when input is not a `RawTableList`. */ export declare function tableListToTable(tableList: RawTableList): RawTable; /** * Transform relation to table. * @example * relationToTable([ * ['id', 'name'], [1, 'n1']], * [['from', 'to', 'value'], [1, 1, 1] * ]) * // [[1], [1], [[1]]] * @throw * Throw `Error` when input is not an array of `RawTableList`. */ export declare function relationToTable([nodeTableList, linkTableList,]: RawRelation): RawTable; /** * Matrix transpose operation. * @return * Return transposed `RawTableList`. */ export declare function transpose(tableList: RawTableList): RawTableList;