export type AlertColor = 'danger' | 'success' | 'info' | 'warning' | 'neutral' | 'brand'; export type VariantAlert = 'contained' | 'outlined' | 'accent' | 'minimal'; export type AnimationAlert = 'none' | 'fade' | 'slide' | 'zoom' | 'flip' | 'bounce' | 'slide-up'; export type SizeAlert = 'sm' | 'md'; export interface AlertProps { open: boolean; message?: string; description?: string; color?: AlertColor; isLeaving?: boolean; title?: string; showCloseButton?: boolean; variant?: VariantAlert; onClick?: () => void; onClose?: (e: React.MouseEvent) => void; onPrimaryClick?: () => void; onSecondaryClick?: () => void; primaryButtonText?: string; secondaryButtonText?: string; animation?: AnimationAlert; className?: string; size?: SizeAlert; /** * Duración en milisegundos antes de que el alert se cierre automáticamente. * Si se proporciona, muestra una barra de progreso que indica el tiempo restante. */ duration?: number; /** * Contenido adicional que se renderiza antes de la barra de progreso. * Útil para mostrar contadores u otros elementos personalizados. */ children?: React.ReactNode; /** * URL de una imagen de avatar para mostrar en lugar del icono por defecto. * Cuando se proporciona, muestra un avatar circular con la imagen. */ avatar?: string; } export type AlertHeaderProps = Pick; export type AlertFooterProps = Pick; /** @deprecated Usa AlertProps en su lugar */ export type IAlert = AlertProps; //# sourceMappingURL=alert.d.ts.map