import { RowData, _Field, FieldData, InsertTransformers, OutputTransformers, TypeSchema } from '../'; /** * Builds a dynamic row object by separating the input data into non-dynamic fields and a dynamic field. * * @param {RowData} rowData - The input data object. * @param {Map} fieldMap - A map of field names to field objects. * @param {string} dynamicFieldName - The name of the dynamic field. * @returns {RowData} The generated dynamic row object. */ export declare const buildDynamicRow: (rowData: RowData, fieldMap: Map, dynamicFieldName: string, functionOutputFields: string[]) => RowData; /** * Processes vector data from gRPC response format * @param item - The vector field item from gRPC response * @param transformers - Optional transformers for data conversion * @returns Processed vector data */ export declare const processVectorData: (item: any, transformers?: OutputTransformers) => any; /** * Decodes one `ScalarField` of an array column into a JS array. Nested * `array_data` (Array sub-fields of a struct field) is decoded recursively. * @param f - The `ScalarField` from the gRPC response * @returns The decoded array */ export declare const decodeArrayScalarField: (f: any) => any[]; /** * Processes scalar data from gRPC response format * @param item - The scalar field item from gRPC response * @returns Processed scalar data */ export declare const processScalarData: (item: any) => any; /** * Processes struct arrays data from gRPC response format * @param item - The struct arrays field item from gRPC response * @returns Processed struct arrays data as array of objects */ export declare const processStructArraysData: (item: any) => any; /** * create a data map for each fields, resolve grpc data format * If the field is a vector, split the data into chunks of the appropriate size. * If the field is a scalar, decode the JSON/array data if necessary. */ export declare const buildFieldDataMap: (fields_data: any[], transformers?: OutputTransformers) => Map; /** * Encodes one row of a typed (nested) array as a gRPC `ScalarField`, * following `schema` (a `TypeSchema` from describeCollection). * * For an Array sub-field of a struct field, `schema` is the sub-field's * `type_schema` and `values` holds one array per struct element: * `[['a', 'b'], []]` becomes * `{ array_data: { element_type: VarChar, data: [{ string_data: ['a', 'b'] }, { string_data: [] }] } }`. * * @param values - The row's values * @param schema - The TypeSchema describing `values` * @param name - The field name, for error messages * @returns The `ScalarField` payload */ export declare const encodeTypedArrayNode: (values: any, schema: TypeSchema, name: string) => Record; /** * Builds the field data for a given row and column. * * @param {RowData} rowData - The data for the row. * @param {Field} column - The column information. * @returns {FieldData} The field data for the row and column. */ export declare const buildFieldData: (rowData: RowData, field: _Field, transformers?: InsertTransformers, rowIndex?: number) => FieldData;