import { FillButton } from '../Button'; import { CloseButtonProps } from '../Modals/types'; import { WithChildrenProp } from '../utils'; import { alertVariants } from './variants'; export type AlertType = keyof typeof alertVariants; export type AlertPlacements = 'inline' | 'floating'; type AlertPlacementType = { type?: Exclude; placement?: AlertPlacements; } | { type: 'subtle'; placement: 'inline'; }; export type AlertProps = WithChildrenProp & AlertPlacementType & { /** Sets the tabIndex of the Alert's Button component(s) to -1 */ hidden?: boolean; className?: string; /** Callback to be called when the close icon is clicked */ onClose?: () => void; /** Call to Action Configuration */ cta?: Exclude, 'variant' | 'mode' | 'size'> & { text?: string; }; /** Props for customizing the close button */ closeButtonProps?: Omit, 'hidden'>; }; export declare const Alert: React.FC; export {};