import { DataTypeFieldConfig, FieldType, DataTypeFields, GeoPoint, GeoBoundary } from '@terascope/types'; type CoerceFN = (input: unknown) => T; /** Will return a function that will coerce the input values to the DataTypeFieldConfig provided. * The parameter childConfig is only necessary with Tuple or Object field types */ export declare function coerceToType(fieldConfig: DataTypeFieldConfig, childConfig?: DataTypeFields): CoerceFN; export declare function coerceToNumberType(type: FieldType): (input: unknown) => number | bigint; /** * Convert value to a GeoPoint data type */ export declare function coerceToGeoPoint(input: unknown): GeoPoint; /** * Convert value to a GeoBoundary data type, a GeoBoundary * is two GeoPoints, one representing the top left, the other representing * the bottom right */ export declare function coerceToGeoBoundary(input: unknown): GeoBoundary; /** * If we have a hash that is a long value we want to ensure that * the value doesn't explode the memory since we may be using * that value as a key. So when a string exceeds this specified * length we can reduce its length to 35 characters by using md5 */ export declare const MAX_STRING_LENGTH_BEFORE_MD5 = 1024; /** * Generate a unique hash code from a value, this is * not a guarantee but it is close enough for doing * groupBys and caching */ export declare function getHashCodeFrom(value: unknown): string; export declare function md5(value: string | Buffer): string; export {}; //# sourceMappingURL=type-coercion.d.ts.map