import { a as Containable, c as OptionallyDismissable, d as WithProxyable, n as Closable, o as Dismissable, r as ConfettiContainer } from "./types-C-q5VrLk.js"; import { d as RespondentVisibilityProviderProps, f as WithVisibilityControl, t as BaseConfettiProps } from "./Confetti-ClwOwSrM.js"; //#region src/templates/EmbeddedConfettiContent.d.ts interface EmbeddedConfettiContentProps extends Omit, Closable { respondent: string; } //#endregion //#region src/static/EmbeddedConfetti.d.ts type EmbeddedConfettiProps = WithProxyable> & Containable; declare function EmbeddedConfetti(props: EmbeddedConfettiProps): import("react").JSX.Element | null; //#endregion //#region src/templates/ModalConfettiContent.d.ts interface ModalConfettiContentProps extends Omit, OptionallyDismissable { respondent: string; } //#endregion //#region src/static/ModalConfetti.d.ts type ModalConfettiProps = WithProxyable>; declare function ModalConfetti(props: ModalConfettiProps): import("react").JSX.Element | null; //#endregion //#region src/templates/PopoverConfettiContent.d.ts interface PopoverConfettiContentProps extends Omit, Dismissable { respondent: string; } //#endregion //#region src/static/PopoverConfetti.d.ts type PopoverConfettiProps = WithProxyable>; declare function PopoverConfetti(props: PopoverConfettiProps): import("react").JSX.Element | null; //#endregion //#region src/templates/StepperConfettiContent.d.ts interface StepperConfettiContentProps extends Omit, Closable { respondent: string; } //#endregion //#region src/static/StepperConfetti.d.ts type StepperConfettiProps = WithProxyable> & Containable; declare function StepperConfetti(props: StepperConfettiProps): import("react").JSX.Element | null; //#endregion //#region src/static/ConfettiTrigger.d.ts interface TriggerRenderProps { /** Opens the survey. */ onClick: () => void; /** Whether the survey is currently open. */ isWidgetOpen: boolean; /** Whether the respondent has already submitted the survey. */ hasSubmitted: boolean; } interface TriggerChildProps extends Pick { /** * Invoked when the user dismisses the survey via the close button before * submitting. Collapses the popover back to the trigger button. */ onDismiss: () => void; /** * Invoked when the user completes the survey. Marks the trigger button as * submitted, then calls the trigger-level `onFinished`. */ onFinished: () => void; /** * Invoked on every close path: the close button, the close-on-finish timer, * and the Thank-You button. Collapses the popover back to the trigger * button. The next click reopens a fresh survey. */ onClose: () => void; } interface ConfettiTriggerProps extends WithProxyable & BaseConfettiProps> { surveyId: string; publishableKey: string; /** * Renders the element that opens the survey. Receives the click handler and * the open and submitted state. Defaults to the built-in trigger button. */ trigger?: (renderProps: TriggerRenderProps) => React.ReactNode; /** * Renders the survey surface once the trigger is activated. Receives the * survey props plus the close, dismiss, and finish handlers. */ children: (triggerProps: TriggerChildProps) => React.ReactNode; } declare const ConfettiTrigger: ({ trigger, children, metadata, options, onFinished, proxyUrl, ...providerProps }: ConfettiTriggerProps) => import("react").JSX.Element; //#endregion export { type ConfettiContainer, ConfettiTrigger, type ConfettiTriggerProps, EmbeddedConfetti, type EmbeddedConfettiProps, ModalConfetti, type ModalConfettiProps, PopoverConfetti, type PopoverConfettiProps, StepperConfetti, type StepperConfettiProps, type TriggerChildProps, type TriggerRenderProps };