import { PropertyValidatorComponentAsync, DataDescription, ModelValidatorComponent } from '../types.js'; import { OrmValidatorContext, OrmModelExtensions, OrmModelInstanceExtensions } from './types.js'; /** * A validator that ensures that there is only one instance stored, that has a unique combination of values. * @param propertyKeyArray - An array of property names that create the unique match. */ declare const uniqueTogether: (propertyKeyArray: readonly string[]) => ModelValidatorComponent; /** * Validates that a stored instance is the only one that has a value for a specific property. * This only validates before the instance goes into the datastore. * @param propertyKey - The property key to check. */ declare const unique: (propertyKey: string) => PropertyValidatorComponentAsync; /** * Creates a base orm context. * @param noOrmValidation - Determines if the validation process should ignore any ORM related validation. (If you don't want to do a database query for a specific validation). */ declare const buildOrmValidatorContext: ({ noOrmValidation, }: { noOrmValidation?: boolean | undefined; }) => OrmValidatorContext; export { unique, uniqueTogether, buildOrmValidatorContext };