import type { AnyObject } from '@scalar/types/utils';
import { type AjvError } from './prettify-ajv-errors.js';
import type { ErrorObject } from './types.js';
/**
 * Transforms raw Ajv errors into enriched, human-friendly error objects.
 *
 * A plain string is passed through as a single error message. Otherwise the Ajv
 * errors are prettified and deduplicated.
 */
export declare function transformErrors(specification: AnyObject, errors: string | AjvError[]): ErrorObject[];
//# sourceMappingURL=transform-errors.d.ts.map