import { RowData } from '../helper'; export interface FlattenOptions { /** * 需要 `flatten` 的字段,该字段必须是数组,如果是对象请使用 `fold` 或者 `project` */ fields: string[]; /** * 字段名称,它的长度应该和`fields`的长度一样,默认和`fields`一样 */ as?: string[]; /** * 如果指定则为每一行添加一个位置索引,索引的字段名即为 `index` */ index?: string; } /** * 展开数组字段 * @param rows - 数据 * @param options - 配置 */ export declare function flatten(rows: RowData[], options: FlattenOptions): RowData[];