import { default as React, ReactElement, MouseEventHandler } from 'react'; import { ModalSlideshowSlide } from './types'; export type ModalSlideshowProps = { /** * The slides to display in the ModalSlideshow. */ slides: ModalSlideshowSlide[]; /** * Whether the ModalSlideshow should have opening and closing animation. */ noAnimation?: boolean; /** * Whether the ModalSlideshow should be open. */ isOpen: boolean; /** * Handler that is called to cancel the slideshow. */ onCancel: MouseEventHandler; /** * Handler that is called when the ModalSlideshow is closed. */ onClose: ({ event, index, }: { event: React.MouseEvent; index: number; }) => void; /** * Handler that is called after the last slide has been displayed. */ onDone: MouseEventHandler; /** * The element where to mount the Modal. It needs to be outside the GrapesProvider tree for the focus trap to work properly. * @default document.body */ portalContainer?: Element; /** * The translations for the buttons. */ translations: { cancel: string; previous: string; next: string; done: string; }; }; export declare const ModalSlideshow: ({ slides, noAnimation, isOpen, onCancel, onClose, onDone, portalContainer, translations, }: ModalSlideshowProps) => ReactElement | null; //# sourceMappingURL=ModalSlideshow.d.ts.map