import { type ReactNode } from 'react'; import { type TextInputProps } from '../text-input'; export interface PostalCodeInputProps extends Omit { /** ISO 3166-1 alpha-2 (lowercase). Drives format, length, and keyboard. */ country?: string; value?: string; defaultValue?: string; onValueChange?: (value: string) => void; /** Override the built-in per-country validity rule entirely. */ validate?: (value: string, country?: string) => boolean; /** Regex source applied when there's no `validate` and no built-in rule. */ pattern?: string; /** * Inline error message. Pass `null` when the host shows the message * itself: the input then turns red only when a wrapping FormField has an * `error`, or the host passes `aria-invalid`. */ errorMessage?: ReactNode | null; /** * Fires on blur (and on change after first blur) with the field's validity. * NOTE: an empty value reports `true` — emptiness is `required`'s concern, * not this field's. (EmailInput reports `false` for empty; gate "required" * separately at the form level.) */ onValidityChange?: (valid: boolean) => void; } export declare const PostalCodeInput: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=postal-code-input.d.ts.map