/**
 * @module validation
 * @description Field validation utilities for the Form Plugin
 */
import type { JsonValue } from "../../../types/index.ts";
import type { FormControl, TypeHandler } from "./types.ts";
/**
 * Validation result.
 */
export interface ValidationResult {
    valid: boolean;
    error?: string;
}
export declare function registerTypeHandler(type: string, handler: TypeHandler): void;
export declare function getTypeHandler(type: string): TypeHandler | undefined;
export declare function clearTypeHandlers(): void;
/**
 * Validate a value against a control's validation rules.
 */
export declare function validateField(value: JsonValue, control: FormControl): ValidationResult;
export declare function matchesMimeType(mimeType: string, pattern: string): boolean;
export declare function parseValue(value: string, control: FormControl): JsonValue;
export declare function formatValue(value: JsonValue, control: FormControl): string;
//# sourceMappingURL=validation.d.ts.map