import * as Dialog from '@radix-ui/react-dialog'; import { FC } from 'react'; import { Dataset } from '@preply/ds-core'; export declare type ModalProps = Dialog.DialogProps & { isOpen?: boolean; onOpenChange?: (open: boolean) => void; onRequestClose?: () => void; mobileFullHeight?: boolean; displayOnCloseButton?: boolean; isDismissable?: boolean; isOverflowVisible?: boolean; background?: 'brand'; dataset?: Dataset; qaIdCloseButton?: string; }; /** * Modal component * @param children - content of modal * @param isOpen - Prop to control the state of the modal, kept for backward compatibility * @param open - It works the same as isOpen (comes with radix-ui) * @param onOpenChange - Triggered when overlay or close button is clicked * @param onRequestClose - Works the same as onOpenChange, kept for backward compatibility * @param mobileFullHeight - Prop to control the height of the modal on mobile * @param displayOnCloseButton - default true, if false, close button will not be displayed * @param rest - [radix-ui dialog props]{@link https://www.radix-ui.com/primitives/docs/components/dialog#root} * @param isDismissable - controls whether the modal can be closed by clicking on the overlay/esc button * @param isOverflowVisible - controls whether the modal can be scrolled * @param background - controls the background of modal, accepts only one value - 'brand', default is primary * @param dataset - data attributes for modal * @param qaIdCloseButton - data-qa-id for close button * @constructor */ export declare const RebrandModal: FC; //# sourceMappingURL=index.d.ts.map