import { type ChangeEvent, type CSSProperties, type FormEvent, type HTMLAttributes, type ReactNode, type Ref, type TextareaHTMLAttributes } from 'react'; type FeedbackPopoverStatus = 'idle' | 'loading' | 'success'; type FeedbackPopoverStyle = CSSProperties & { '--feedback-popover-panel-height'?: CSSProperties['height']; '--feedback-popover-panel-width'?: CSSProperties['width']; }; type FeedbackPopoverProps = { value?: string; defaultValue?: string; open?: boolean; defaultOpen?: boolean; triggerLabel?: string; textareaId?: string; textareaLabel?: string; placeholder?: string; submitLabel?: string; loadingLabel?: string; successTitle?: ReactNode; successDescription?: ReactNode; successIcon?: ReactNode; panelWidth?: CSSProperties['width']; panelHeight?: CSSProperties['height']; submitDelay?: number; successDuration?: number; closeOnSuccess?: boolean; resetOnClose?: boolean; disabled?: boolean; autoFocus?: boolean; className?: string; triggerClassName?: string; panelClassName?: string; formClassName?: string; textareaClassName?: string; submitButtonClassName?: string; successClassName?: string; style?: FeedbackPopoverStyle; ref?: Ref; textareaRef?: Ref; textareaProps?: Omit, 'children' | 'className' | 'defaultValue' | 'disabled' | 'id' | 'onChange' | 'placeholder' | 'ref' | 'value'>; onOpenChange?: (open: boolean) => void; onValueChange?: (value: string, event: ChangeEvent) => void; onSubmit?: (value: string, event: FormEvent) => void | Promise; onSubmitError?: (error: unknown) => void; } & Omit, 'children' | 'className' | 'defaultValue' | 'onChange' | 'onSubmit' | 'style'>; declare const FeedbackPopover: ({ value, defaultValue, open, defaultOpen, triggerLabel, textareaId: textareaIdProp, textareaLabel, placeholder, submitLabel, loadingLabel, successTitle, successDescription, successIcon, panelWidth, panelHeight, submitDelay, successDuration, closeOnSuccess, resetOnClose, disabled, autoFocus, className, triggerClassName, panelClassName, formClassName, textareaClassName, submitButtonClassName, successClassName, style, ref, textareaRef, textareaProps, onOpenChange, onValueChange, onSubmit, onSubmitError, ...rootProps }: FeedbackPopoverProps) => import("react/jsx-runtime").JSX.Element; export { FeedbackPopover }; export type { FeedbackPopoverProps, FeedbackPopoverStatus, FeedbackPopoverStyle, };