import type { JsonSchemaError } from '@canard/schema-form';
import type { ErrorObject } from 'ajv';
/**
 * Transforms AJV8 error objects to schema-form error format.
 *
 * AJV8 already uses JSONPointer format for instancePath, so minimal
 * transformation is needed. This function mainly handles the required
 * keyword errors by appending the missing property to the dataPath.
 *
 * @param errors - Array of AJV8 error objects
 * @returns Array of transformed JsonSchemaError objects
 */
export declare const transformErrors: (errors: ErrorObject[]) => JsonSchemaError[];
