import { DataTypeFields, FieldType } from '@terascope/types'; import { Vector, VectorOptions } from './Vector.js'; import { DataBuckets } from './interfaces.js'; export declare function _newVector(data: DataBuckets, options: VectorOptions): Vector; export type ParsedNumericObject = { original?: string; parsed: number | bigint; }; type NumericValuesResult = { readonly values: number[]; readonly type: 'number'; } | { readonly values: bigint[]; readonly type: 'bigint'; } | { readonly values: ParsedNumericObject[]; readonly type: 'bigint'; }; /** * Get all of the numeric values from a value or Vector * (will return as [] of number|bigint UNLESS allowing IP and value is IP, * then will return object with original value and parsed to number) */ export declare function getNumericValues(value: unknown, allowIP?: boolean): NumericValuesResult; export declare function isNumberLike(type: FieldType): boolean; export declare function isFloatLike(type: FieldType): boolean; export declare function isIntLike(type: FieldType): boolean; export declare function isStringLike(type: FieldType): boolean; /** * Given two field types, return a common field type format. * This will be flexible for string like and number like values. */ export declare function getCommonFieldType(field: string, a: FieldType, b: FieldType): FieldType; export declare function getCommonTupleType(tupleField: string, childConfig: DataTypeFields | undefined): FieldType; export {}; //# sourceMappingURL=utils.d.ts.map