import { default as React, MutableRefObject } from 'react'; import { LinkElementType, LinkProps, ModalProps, OverlayProps } from '../../'; export interface RegionModalProps extends Omit { /** * ID to find this component in testing tools (e.g.: cypress, * testing-library, and jest). */ testId?: string; /** * The region modal's title. */ title?: string; /** * Description for region modal. */ description?: string; /** * Close button aria-label. */ closeButtonAriaLabel?: string; /** * Props for the link `I don't know my Postal Code`. */ idkPostalCodeLinkProps?: Partial>; /** * Props for the `I don't know my Postal Code` link on modal body content. */ linkText?: Partial>; /** * Message of error for input. */ errorMessage?: string; /** * Postal code input's ref. */ inputRef?: MutableRefObject; /** * Postal code input's value. */ inputValue?: string; /** * Postal code input's label. */ inputLabel?: string; /** * The text displayed on the InputField Button. Suggestion: maximum 9 characters. */ inputButtonActionText?: string; /** * Enables fadeOut effect on modal after onSubmit function */ fadeOutOnSubmit?: boolean; /** * Props forwarded to the `Overlay` component. */ overlayProps?: OverlayProps; /** * Function called when Close button is clicked. */ onClose?: () => void; /** * Callback function when input is typed. */ onInput?: (event: React.FormEvent) => void; /** * Callback function when form is submitted. */ onSubmit?: () => void; /** * Callback function when the input clear button is clicked. */ onClear?: () => void; /** * Determines if the modal can be dismissed using the close button or the Escape key. * @default true */ dismissible?: boolean; } declare function RegionModal({ testId, title, description, closeButtonAriaLabel, idkPostalCodeLinkProps, errorMessage, inputRef, inputValue, inputLabel, inputButtonActionText, fadeOutOnSubmit, overlayProps, onClose, onInput, onSubmit, onClear, dismissible, ...otherProps }: RegionModalProps): React.JSX.Element; export default RegionModal; //# sourceMappingURL=RegionModal.d.ts.map