import type { EponymeSchema } from '../types/index.js'; /** * Errors are keyed by the path of the field they belong to - `title`, `hero.title`, `items.0.title` - so * the editor can show each message on the field that produced it. */ export type ValidationErrors = Record; export type ValidationMode = 'draft' | 'publish'; export declare function validateEponymePatch(schema: EponymeSchema, payload: unknown, data?: Record, mode?: ValidationMode): ValidationErrors; export interface ValidateEponymeDataOptions { /** * Whether to apply the rules about a value's quality rather than its shape - an image's text alternative, * its minimum size, its type. On by default; off when reconciling stored rows, which reset a value failing * validation to its default: a rule added to the config later must refuse the next publication, not * silently empty pictures already online. */ editorial?: boolean; } export declare function validateEponymeData(schema: EponymeSchema, data: Record, mode?: ValidationMode, options?: ValidateEponymeDataOptions): ValidationErrors;