import React from 'react'; import { type ComposableProps } from '../../../lib/slot'; export type PopconfirmPlacement = 'top' | 'bottom' | 'left' | 'right'; export interface PopconfirmProps extends Omit, 'onConfirm' | 'onCancel'> { /** * Confirm handler */ onConfirm?: () => void; /** * Cancel handler */ onCancel?: () => void; /** * Placement * @default 'top' */ placement?: PopconfirmPlacement; /** * Popconfirm content (composable API) */ children?: React.ReactNode; /** * Disabled state * @default false */ disabled?: boolean; /** * Additional CSS classes */ className?: string; } /** * Popconfirm Component * * A confirmation popup component triggered by user action. * Uses composable API with PopconfirmTrigger, PopconfirmContent, * PopconfirmTitle, PopconfirmDescription, PopconfirmActions, * PopconfirmIcon, and PopconfirmArrow sub-components. * * @public * * @example * ```tsx * * * * * * * Are you sure? * This action cannot be undone. * * * * * ``` * * @remarks * - Composable API provides maximum flexibility and control * - All sub-components (PopconfirmTrigger, PopconfirmContent, etc.) support `asChild` * - Supports custom placement and styling */ export declare const Popconfirm: React.FC; //# sourceMappingURL=Popconfirm.d.ts.map