interface ValidationResult { isValid: boolean; error?: string; } type Validator = (value: T) => boolean; type ValidatorWithOptions = (value: T, options?: O) => boolean; declare const defaultURLOptions: { protocols: string[]; require_tld: boolean; require_protocol: boolean; require_host: boolean; require_port: boolean; require_valid_protocol: boolean; allow_underscores: boolean; allow_trailing_dot: boolean; allow_protocol_relative_urls: boolean; allow_fragments: boolean; allow_query_components: boolean; validate_length: boolean; max_allowed_length: number; }; type DefaultURLOptions = typeof defaultURLOptions; declare const defaultPasswordOptions: { minLength: number; minLowercase: number; minUppercase: number; minNumbers: number; minSymbols: number; returnScore: false; pointsPerUnique: number; pointsPerRepeat: number; pointsForContainingLower: number; pointsForContainingUpper: number; pointsForContainingNumber: number; pointsForContainingSymbol: number; }; type DefaultPasswordOptions = typeof defaultPasswordOptions; declare const isValidEmail: (value: string) => boolean; declare const isValidPassword: (value: string) => boolean; declare const isValidStrongPassword: ValidatorWithOptions>; declare const isValidColumnName: (value: string) => boolean; declare const isValidTableName: (value: string) => boolean; declare const isValidUrl: (value: string, options?: DefaultURLOptions) => boolean; declare const isValidPhoneNumber: (value: string) => boolean; declare const isValidDate: (value: string) => boolean; declare const isValidJson: (value: string) => boolean; declare const isValidHexColor: (value: string) => boolean; declare function isValidIPAddress(ip: string): boolean; declare const isValidMacAddress: (value: string) => boolean; declare const isValidTime: (value: string) => boolean; declare const isValidLatitude: (value: string) => boolean; declare const isValidLongitude: (value: string) => boolean; declare const isValidUSPostalCode: (value: string) => boolean; declare const POSTAL_CODE_PATTERNS: Record; declare const isValidPostalCode: (value: string, country?: string) => boolean; declare const isValidCountryCode: (value: string) => boolean; declare const isValidCurrencyCode: (value: string) => boolean; declare const isValidEnumValue: (value: string, enumValues: readonly T[]) => value is T; declare const isValidFileName: (value: string) => boolean; declare const isValidJsonSchema: (value: string) => boolean; declare const isValidXml: (value: string) => boolean; declare const isValidMarkdown: (value: string) => boolean; declare const isValidCsv: (value: string) => boolean; declare const isValidBase64: (value: string) => boolean; declare const isValidHtml: (value: string) => boolean; declare const isValidSlug: (value: string) => boolean; declare const isValidTimeZone: (value: string) => boolean; declare const isValidIBAN: (value: string) => boolean; declare const isValidSwiftCode: (value: string) => boolean; declare const isValidGitHubUsername: (value: string) => boolean; declare const isValidTwitterHandle: (value: string) => boolean; declare const isValidInstagramHandle: (value: string) => boolean; declare const isValidLinkedInProfile: (value: string) => boolean; declare const isValidYouTubeChannel: (value: string) => boolean; declare const isValidFacebookProfile: (value: string) => boolean; /** * Creates a proper File object from various possible input formats * @param fileData The file data from the form submission * @returns A proper File object or null if invalid */ declare function getFileSizeFromUrl(url: string): Promise; export { type DefaultPasswordOptions, type DefaultURLOptions, POSTAL_CODE_PATTERNS, type ValidationResult, type Validator, type ValidatorWithOptions, defaultPasswordOptions, defaultURLOptions, getFileSizeFromUrl, isValidBase64, isValidColumnName, isValidCountryCode, isValidCsv, isValidCurrencyCode, isValidDate, isValidEmail, isValidEnumValue, isValidFacebookProfile, isValidFileName, isValidGitHubUsername, isValidHexColor, isValidHtml, isValidIBAN, isValidIPAddress, isValidInstagramHandle, isValidJson, isValidJsonSchema, isValidLatitude, isValidLinkedInProfile, isValidLongitude, isValidMacAddress, isValidMarkdown, isValidPassword, isValidPhoneNumber, isValidPostalCode, isValidSlug, isValidStrongPassword, isValidSwiftCode, isValidTableName, isValidTime, isValidTimeZone, isValidTwitterHandle, isValidUSPostalCode, isValidUrl, isValidXml, isValidYouTubeChannel };