import { SlotsDefineType, VueNode as VueNode$1 } from "../_util/type.js"; import { SemanticType } from "../_util/hooks/useMergeSemantic.js"; import "../_util/hooks/index.js"; import { ClosableType } from "../_util/hooks/useClosable.js"; import { ComponentBaseProps } from "../config-provider/context.js"; import * as vue32 from "vue"; import { CSSProperties, SlotsType } from "vue"; //#region src/alert/Alert.d.ts interface AlertSemanticType { classes: { root?: string; icon?: string; section?: string; title?: string; description?: string; actions?: string; close?: string; }; styles: { root?: CSSProperties; icon?: CSSProperties; section?: CSSProperties; title?: CSSProperties; description?: CSSProperties; actions?: CSSProperties; close?: CSSProperties; }; } type AlertClassNamesType = SemanticType; type AlertStylesType = SemanticType; type AlertVariant = 'filled' | 'outlined'; interface AlertProps extends ComponentBaseProps, AlertEmitsProps { /** Type of Alert styles, options:`success`, `info`, `warning`, `error` */ type?: 'success' | 'info' | 'warning' | 'error'; /** * Visual variant. `filled` keeps the existing solid background, `outlined` * renders with the colored border style introduced in ant-design 6.4.0. * @default 'filled' */ variant?: AlertVariant; /** Whether Alert can be closed */ closable?: ClosableType; /** Content of Alert */ title?: VueNode$1; /** * @deprecated please use `title` instead. */ message?: VueNode$1; /** Additional content of Alert */ description?: VueNode$1; /** Trigger when animation ending of Alert */ afterClose?: () => void; /** Whether to show icon */ showIcon?: boolean; /** https://www.w3.org/TR/2014/REC-html5-20141028/dom.html#aria-role-attribute */ role?: string; classes?: AlertClassNamesType; styles?: AlertStylesType; banner?: boolean; icon?: VueNode$1; closeIcon?: VueNode$1; action?: VueNode$1; id?: string; } type AlertSlots = SlotsDefineType<{ message?: () => any; description?: () => any; icon?: () => any; closeIcon?: () => any; action?: () => any; title?: () => any; }>; interface AlertEmits { /** Callback when close Alert */ close: (e: any) => any; mouseenter: (e: any) => any; mouseleave: (e: any) => any; click: (e: any) => any; } interface AlertEmitsProps { onClose?: AlertEmits['close']; onMouseenter?: AlertEmits['mouseenter']; onMouseleave?: AlertEmits['mouseleave']; onClick?: AlertEmits['click']; } declare const Alert: vue32.DefineSetupFnComponent, AlertProps, vue32.PublicProps>; //#endregion export { AlertClassNamesType, AlertEmits, AlertEmitsProps, AlertProps, AlertSemanticType, AlertSlots, AlertStylesType, AlertVariant, Alert as default };