import type { JsonSchema, SchemaFormErrors } from './types'; /** Options for {@link validateAgainstSchema}. */ export interface ValidateOptions { /** * The host's default byte cap for media-upload fields, mirroring the renderer's * `maxUploadBytes` prop. A field's own `contentMaxBytes` still overrides it; * absent both, the shared default applies. */ readonly maxUploadBytes?: number; } /** * Validate `value` against `schema`, returning a per-path error bag (empty = * valid). The caller runs this before submit and feeds the result back to * `SchemaForm` for display. `options.maxUploadBytes` mirrors the renderer's * `maxUploadBytes` prop so a media field's byte cap is enforced identically here. */ export declare function validateAgainstSchema(schema: JsonSchema, value: unknown, options?: ValidateOptions): SchemaFormErrors; //# sourceMappingURL=validate.d.ts.map