import { CsvField, FlattenCallback, JsonField, Path } from './types.js'; export declare function collectFields(records: T[], flatten: FlattenCallback): CsvField[]; export declare function toFields(names: string[], nested: boolean): JsonField[]; /** * Create an array which has an entry for every column in a CSV file, which is: * - undefined when the column is not needed in the generated JSON output * - JsonField otherwise, where the field can be configured by index, or by name * In the latter case, the index will be resolved by looking the field name up in the * list with fieldNames (containing all available fields) */ export declare function mapFields(fieldNames: string[], fields: JsonField[]): (JsonField | undefined)[]; export declare function collectNestedPaths(array: T[], recurse: FlattenCallback): Path[]; //# sourceMappingURL=fields.d.ts.map