/**
 * Validation utilities for form components
 */
export type ValidationRule = {
    required?: boolean;
    minLength?: number;
    maxLength?: number;
    pattern?: RegExp;
    email?: boolean;
    url?: boolean;
    min?: number;
    max?: number;
    custom?: (value: any) => string | null;
};
export type ValidationSchema = Record<string, ValidationRule>;
export interface ValidationResult {
    isValid: boolean;
    errors: Record<string, string>;
}
/**
 * Validate a single value against a rule
 */
export declare function validateField(value: any, rule: ValidationRule, fieldName: string): string | null;
/**
 * Validate form data against a schema
 */
export declare function validateForm(data: Record<string, any>, schema: ValidationSchema): ValidationResult;
/**
 * Common validation patterns
 */
export declare const validationPatterns: {
    email: RegExp;
    url: RegExp;
    phone: RegExp;
    slug: RegExp;
    alphanumeric: RegExp;
};
//# sourceMappingURL=validation.d.ts.map