import { type DataRecordValue, type Dictionary, type Result, type Schema, type SchemaField, type UnprocessedDataRecord } from '@overture-stack/lectern-dictionary'; import type { ParseDictionaryResult, ParseRecordResult, ParseSchemaResult } from './ParseValuesResult'; /** * Parse the string value for a field and convert it to the type defined in the fieldDefinition. * * If the field is an array, this will split the field into separate values and attempt to convert each of those values. * If any of the values in the array cannot be converted, the entire value parsing process will fail. */ export declare function parseFieldValue(value: string, fieldDefinition: SchemaField): Result; /** * Parse string values and convert them to properly typed values for fields from their schema definition. * * If there are any type errors found during conversion, this will return a failed `Result` * with a list of the `ConvertTypeErrors`. * * If a field is in the record that is not found in the schema, this will return a faile `Result` * indicating the unrecognized field. Its value will remain a string without any conversion. */ export declare function parseRecordValues(record: UnprocessedDataRecord, schema: Schema): ParseRecordResult; /** * */ export declare function parseSchemaValues(records: UnprocessedDataRecord[], schema: Schema): ParseSchemaResult; /** * */ export declare function parseDictionaryValues(schemaData: Record, dictionary: Dictionary): ParseDictionaryResult;