import type { DataRecord, Schema } from '@overture-stack/lectern-dictionary'; import { type TestResult } from '../types'; import type { SchemaValidationError } from './SchemaValidationError'; /** * Validate a data set using a Lectern Schema. The data to validate is an array of DataRecords that contains all * records for the given schema. Each record of the data set will be validated individually, plus schema level * validation tests will be applied. * * Validation tests specific to Schema validation are: * - unique fields: for any fields marked as unique, this will check if there are multiple records with the same value * - uniqueKey: if the schema has a uniqueKey defined, this will check if there are multiple records with the same * uniqueKey value * * @param records * @param schema * @returns */ export declare const validateSchema: (records: Array, schema: Schema) => TestResult;