export { DataRecord, DataRecordValue, UnprocessedDataRecord, ArrayDataValue, SingleDataValue, Dictionary, Schema, SchemaField, Result, createDataFileTemplate, } from '@overture-stack/lectern-dictionary'; import * as _validation from '@overture-stack/lectern-validation'; export type { TestResult, TestResultValid, TestResultInvalid, SchemaValidationRecordErrorDetails, SchemaRecordError, DictionaryValidationRecordErrorDetails, DictionaryValidationError, FieldValidationErrorRestrictionInfo, FieldValidationError, ParseDictionaryData, ParseDictionaryFailure, ParseDictionaryResult, ParseFieldError, ParseSchemaError, ParseSchemaFailureData, ParseSchemaResult, ParseRecordFailureData, ParseRecordResult, } from '@overture-stack/lectern-validation'; import * as _processing from './processing'; export * as rest from './rest'; /** * Processing functions will perform both data parsing and validation and then return an * object with the parsed data and a list of any errors encountered. * * The available processing functions are concerned with data at different scales: * - processRecord: will process a single data record using schema definition * - processSchema: will process a collection of data records using a single schema definition * - processDictionary: will process multiple collecitons of data records, each vs a different * schema definition that is found in a dictionary definition. */ export declare const process: typeof _processing; /** * Validation functions will perform all restriction tests on data objects. The result will indicate * if all tests passed or if there were some failures, and return a list of the failures that occurred. */ export declare const validate: { validateField: (value: import("@overture-stack/lectern-dictionary").DataRecordValue, record: import("@overture-stack/lectern-dictionary").DataRecord, fieldDefinition: import("@overture-stack/lectern-dictionary").SchemaField) => _validation.TestResult<_validation.FieldValidationError>; validateRecord: (record: import("@overture-stack/lectern-dictionary").DataRecord, schema: import("@overture-stack/lectern-dictionary").Schema) => _validation.TestResult<_validation.RecordValidationError[]>; validateSchema: (records: Array, schema: import("@overture-stack/lectern-dictionary").Schema) => _validation.TestResult<_validation.SchemaValidationError[]>; validateDictionary: (data: Record, dictionary: import("@overture-stack/lectern-dictionary").Dictionary) => _validation.TestResult<_validation.DictionaryValidationError[]>; }; /** * Parsing functions will convert the an object with string values into a new object with all values properly typed * to match the data types from a schema definition. This parsing process will convert values to numbers, booleans, * and arrays, as required. String values may also be cleaned up to trim whitespace and match the casing of codeList * values. * * The parsing functions will return a Result object that will indicate if parsing was successful or if there were * string values that could not be converted to the required data types. */ export declare const parse: { parseFieldValue: typeof _validation.parseFieldValue; parseRecordValues: typeof _validation.parseRecordValues; parseSchemaValues: typeof _validation.parseSchemaValues; parseDictionaryValues: typeof _validation.parseDictionaryValues; };