/** * Tree-shakeable, type-based validator functions for EDS form controls. * Implements standard HTML5 constraint validation rules per the EDS specification. */ /** * Validates whether the value satisfies required constraint. */ export declare function validateRequired(value: string | null | undefined): boolean; /** * Validates an email address. */ export declare function validateEmail(value: string): boolean; /** * Validates a URL address with standard protocol (http, https, ftp). * Supports standard domains, localhost, IP addresses, and custom ports. */ export declare function validateUrl(value: string): boolean; /** * Validates telephone numbers (permissive standard allowing international and formatted phone numbers). */ export declare function validateTel(value: string): boolean; /** * Validates number value against min, max, and step boundaries. */ export declare function validateNumber(value: string | number, constraints?: { min?: number; max?: number; step?: number; }): { valid: boolean; rangeUnderflow?: boolean; rangeOverflow?: boolean; stepMismatch?: boolean; }; /** * Validates text against a regex pattern. */ export declare function validatePattern(value: string, pattern: string): boolean; /** * Validates text length against minlength and maxlength. */ export declare function validateLength(value: string, minlength?: number, maxlength?: number): { valid: boolean; tooShort?: boolean; tooLong?: boolean; }; export interface ValidationResult { valid: boolean; flags: ValidityStateFlags; validationMessage: string; } /** * Comprehensive constraint validator for eds-input. */ export declare function validateInputConstraints(value: string, options: { type?: string; required?: boolean; pattern?: string; min?: number; max?: number; step?: number; minlength?: number; maxlength?: number; lang?: string; }): ValidationResult; //# sourceMappingURL=validators.d.ts.map