//#region src/components/container/ModalContainer.d.ts interface ModalContainerProps { closeOnFinishMs?: number | null; isDismissable?: boolean; classNames?: { overlay?: string; modal?: string; dialog?: string; closeButton?: string; icon?: string; }; /** * Invoked when the user dismisses the survey via the close button or the * overlay before submitting. Not invoked on auto-close after finish, on the * Thank-You button, or on any close after submission, all of which close a * completed survey rather than dismiss it. */ onDismiss?: () => void; /** * Invoked on every close path: the close button, the overlay, the * close-on-finish timer, and the Thank-You button. Lets the owning wrapper * tear the widget down. */ onClose?: () => void; children: React.ReactNode | ((props: { setIsSubmitted: () => void; setIsFinished: () => void; }) => React.ReactNode); } type ModalContentProps = ModalContainerProps & Required> & { /** * Submitted flag owned by ModalContainer so its overlay handler can tell a * post-submission close apart from a dismissal. Standalone consumers may * omit it, in which case closes count as dismissals until the render * prop's `setIsFinished` reports the submission has settled. */ isSubmitted?: boolean; /** * Invoked when the survey content reports submission through the render * prop's `setIsSubmitted`. Fires when the Thank-You view is shown, before * the submission network call settles. When omitted, the render prop's * `setIsSubmitted` is a silent no-op, so `isSubmitted` never flips. */ onSubmitted?: () => void; }; declare const ModalContent: ({ children, classNames, isDismissable, onDismiss, onClose, closeOnFinishMs, isSubmitted, onSubmitted }: ModalContentProps) => import("react").JSX.Element; declare const ModalContainer: ({ children, classNames, onDismiss, onClose, isDismissable, closeOnFinishMs }: ModalContainerProps) => import("react").JSX.Element; //#endregion export { ModalContainerProps as n, ModalContent as r, ModalContainer as t };