import { n as ModalContainerProps, t as ModalContainer } from "./ModalContainer-CbbuRuFl.js"; import { _ as TextQuestionProperties, g as StatementQuestionProperties, h as SingleSelectQuestionProperties, i as ConfettiState, m as RatingQuestionProperties, p as MultiSelectQuestionProperties, t as Answer, u as Question } from "./types-C-q5VrLk.js"; import { _ as useSurvey, a as BaseFieldProps, c as ConfettiProviderProps, d as RespondentVisibilityProviderProps, g as SurveyProviderProps, h as SurveyProvider, i as BugReportOptions, l as RespondentVisibilityContext, m as SurveyContext, n as Confetti, o as Question$1, p as useRespondentVisibility, r as ConfettiProps, s as ConfettiProvider, t as BaseConfettiProps, u as RespondentVisibilityProvider, v as ConfettiController, y as ConfettiControllerProps } from "./Confetti-ClwOwSrM.js"; import { HTMLAttributes, JSX, PropsWithChildren, SVGProps } from "react"; //#region src/components/container/PopoverContainer.d.ts interface PopoverContainerProps { closeOnFinishMs?: number | null; classNames?: { dialog?: string; closeButton?: string; icon?: string; }; /** * Invoked when the user dismisses the survey via the close button 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 close-on-finish timer, * and the Thank-You button. Lets the owning wrapper tear the widget down. */ onClose?: () => void; containerProps?: Omit, 'children'>; children: React.ReactNode | ((props: { setIsSubmitted: () => void; setIsFinished: () => void; }) => React.ReactNode); } declare const PopoverContainer: ({ children, classNames, containerProps, onDismiss, onClose, closeOnFinishMs }: PopoverContainerProps) => import("react").JSX.Element; //#endregion //#region src/components/CloseButton.d.ts interface CloseButtonProps { className?: string; iconClassName?: string; onClose: () => void; } declare const CloseButton: ({ className, iconClassName, onClose }: CloseButtonProps) => import("react").JSX.Element | null; //#endregion //#region src/components/questions/factory.d.ts interface SurveyQuestionFactoryProps extends BugReportOptions { question: Question$1; onChange: (answer: Answer) => void; error?: string; } declare const SurveyQuestionFactory: ({ question, onChange, error, maskAllInputs }: SurveyQuestionFactoryProps) => import("react").JSX.Element; //#endregion //#region src/components/questions/Rating.d.ts interface RatingProps extends BaseFieldProps { properties: RatingQuestionProperties; classNames?: { question?: string; header?: string; title?: string; description?: string; optionalLabel?: string; ratingSection?: string; ratingDisplay?: string; ratingText?: string; ratingTextLower?: string; ratingTextUpper?: string; ratingDisplayStar?: string; ratingStar?: string; ratingDisplayNumber?: string; ratingNumber?: string; ratingDisplayEmoji?: string; ratingEmoji?: string; error?: string; }; } declare const Rating: ({ properties, title, description, classNames, onChange, id, error, required }: RatingProps) => JSX.Element; //#endregion //#region src/components/questions/FreeText.d.ts interface FreeTextProps extends BaseFieldProps { properties: TextQuestionProperties; classNames?: { question?: string; header?: string; title?: string; optionalLabel?: string; description?: string; textarea?: string; error?: string; }; } declare const FreeText: ({ id, title, description, properties, onChange, classNames, required, error }: FreeTextProps) => import("react").JSX.Element; //#endregion //#region src/components/questions/SingleChoice.d.ts interface SingleChoiceProps extends BaseFieldProps { properties: SingleSelectQuestionProperties; classNames?: { question?: string; header?: string; label?: string; title?: string; description?: string; optionalLabel?: string; group?: string; radio?: string; indicator?: string; othersChoice?: string; othersInput?: string; choiceDescription?: string; error?: string; }; } declare const SingleChoice: ({ title, description, properties, classNames, onChange, id, required, error }: SingleChoiceProps) => import("react").JSX.Element; //#endregion //#region src/components/questions/MultiChoice.d.ts interface MultiChoiceProps extends BaseFieldProps { properties: MultiSelectQuestionProperties; classNames?: { question?: string; header?: string; label?: string; title?: string; description?: string; optionalLabel?: string; choiceDescription?: string; group?: string; checkbox?: string; tag?: string; tagLabel?: string; indicator?: string; svg?: string; othersChoice?: string; othersInput?: string; error?: string; }; } declare const MultiChoice: ({ title, description, properties, classNames, onChange, id, required, error }: MultiChoiceProps) => import("react").JSX.Element; //#endregion //#region src/components/questions/Statement.d.ts interface StatementProps extends BaseFieldProps { properties: StatementQuestionProperties; classNames?: { question?: string; header?: string; title?: string; description?: string; ctaButton?: string; }; } declare const Statement: ({ properties: _properties, title, description, classNames }: StatementProps) => import("react").JSX.Element; //#endregion //#region src/components/ThankYouMessage.d.ts interface ThankYouMessageProps { title?: string; description?: string; classNames?: { question?: string; header?: string; title?: string; description?: string; }; onClose?: () => void; } declare const ThankYouMessage: ({ title, description, classNames, onClose }: ThankYouMessageProps) => import("react").JSX.Element | null; //#endregion //#region src/components/presentation/Flow.d.ts type ChildField = (_: { onChange: (answer: Answer) => void; question: Question$1; error?: string; }) => React.ReactNode; interface FlowProps { onSubmit: (answer: Answer) => void; children: ChildField; question: Question$1; isLastQuestion: boolean; } declare const Flow: ({ onSubmit, children, question, isLastQuestion }: FlowProps) => import("react").JSX.Element; //#endregion //#region src/components/presentation/Embed.d.ts type EmbedProps = PropsWithChildren<{ isCompleted: boolean; onSubmit: () => void; }>; declare const Embed: ({ isCompleted, onSubmit, children }: EmbedProps) => import("react").JSX.Element; //#endregion //#region src/components/trigger/ConfettiTriggerIcon.d.ts declare const ConfettiTriggerIcon: (props: SVGProps) => import("react").JSX.Element; //#endregion //#region src/components/trigger/DefaultConfettiTrigger.d.ts interface DefaultConfettiTriggerProps { onClick: () => void; isWidgetOpen: boolean; label?: string; classNames?: { trigger?: string; icon?: string; iconWrapper?: string; label?: string; }; } declare const DefaultConfettiTrigger: ({ onClick, isWidgetOpen, classNames, label }: DefaultConfettiTriggerProps) => import("react").JSX.Element | null; //#endregion export { type Answer, type BaseConfettiProps, CloseButton, Confetti, ConfettiController, type ConfettiControllerProps, type ConfettiProps, ConfettiProvider, type ConfettiProviderProps, type ConfettiState, ConfettiTriggerIcon, DefaultConfettiTrigger, type DefaultConfettiTriggerProps, Embed, type EmbedProps, Flow, type FlowProps, FreeText, type FreeTextProps, ModalContainer, type ModalContainerProps, MultiChoice, type MultiChoiceProps, PopoverContainer, type PopoverContainerProps, type Question, Rating, type RatingProps, RespondentVisibilityContext, RespondentVisibilityProvider, type RespondentVisibilityProviderProps, SingleChoice, type SingleChoiceProps, Statement, type StatementProps, SurveyContext, SurveyProvider, type SurveyProviderProps, SurveyQuestionFactory, type SurveyQuestionFactoryProps, ThankYouMessage, useRespondentVisibility, useSurvey };