import { JSX } from 'solid-js'; import { AlertDialogRootProps } from '@kobalte/core/alert-dialog'; interface AlertDialogProps extends Omit { /** Whether the dialog is open */ open: boolean; /** Called when open state changes */ onOpenChange?: (open: boolean) => void; /** Dialog title */ title: string; /** Dialog description */ description?: JSX.Element; /** Label for the confirm/action button */ confirmLabel?: string; /** Label for the cancel button */ cancelLabel?: string; /** Called when user confirms. If it returns a Promise, the dialog stays open until resolved. */ onConfirm?: () => void | Promise; /** Called when user cancels */ onCancel?: () => void; /** When true, confirm button uses destructive (red) styling */ destructive?: boolean; /** Additional class for the content panel */ class?: string; /** Additional class for the overlay */ overlayClass?: string; } declare function AlertDialog(props: AlertDialogProps): JSX.Element; export { AlertDialog as A, type AlertDialogProps as a };