import { PropType } from 'vue'; import { Icon } from '@wikimedia/codex-icons'; import { StatusType, TeleportTarget } from '../../types'; /** * A Toast is a short and temporary pop-up notification, meant to be noticed without interrupting * the user experience. */ declare const _default: import("vue").DefineComponent; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; /** * Custom toast icon. Only allowed for notice toasts. */ icon: { type: PropType; default: null; }; /** * Label text for the optional action button. */ actionButtonLabel: { type: StringConstructor; default: string; }; /** * Whether to prevent the user from dismissing the toast. When false (default), an * icon-only dismiss button is shown on desktop/tablet and toasts can be dismissed * by swiping on mobile. */ preventUserDismiss: { type: BooleanConstructor; default: boolean; }; /** * Enable automatic dismissal of toast after a period of time. * * This prop can be set to `true` to use the default display time of 4000 milliseconds. To * customize the display time, set this prop to a number of milliseconds. * * Set to `false` to disable automatic dismissal. */ autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; /** * Whether to disable the use of teleport and render the toast in its * original location in the document. * This is ignored if the toast is rendered inside ToastContainer. */ renderInPlace: { type: BooleanConstructor; default: boolean; }; /** * Teleport target used when this toast renders itself in standalone mode. * Ignored when the toast is rendered inside ToastContainer, or when * `renderInPlace` is true. */ target: { type: PropType; default: undefined; }; /** * When true, this toast does not use the shared store or ToastContainer: * it renders and teleports (or renders in place) itself. Use when you * cannot or do not want to mount a single ``. * Default is false (toast is added to the store and shown by the container). */ standalone: { type: BooleanConstructor; default: boolean; }; }>, { stackContentRef: import("vue").Ref; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action-button-click" | "user-dismissed" | "auto-dismissed")[], "action-button-click" | "user-dismissed" | "auto-dismissed", import("vue").PublicProps, Readonly; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; /** * Custom toast icon. Only allowed for notice toasts. */ icon: { type: PropType; default: null; }; /** * Label text for the optional action button. */ actionButtonLabel: { type: StringConstructor; default: string; }; /** * Whether to prevent the user from dismissing the toast. When false (default), an * icon-only dismiss button is shown on desktop/tablet and toasts can be dismissed * by swiping on mobile. */ preventUserDismiss: { type: BooleanConstructor; default: boolean; }; /** * Enable automatic dismissal of toast after a period of time. * * This prop can be set to `true` to use the default display time of 4000 milliseconds. To * customize the display time, set this prop to a number of milliseconds. * * Set to `false` to disable automatic dismissal. */ autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; /** * Whether to disable the use of teleport and render the toast in its * original location in the document. * This is ignored if the toast is rendered inside ToastContainer. */ renderInPlace: { type: BooleanConstructor; default: boolean; }; /** * Teleport target used when this toast renders itself in standalone mode. * Ignored when the toast is rendered inside ToastContainer, or when * `renderInPlace` is true. */ target: { type: PropType; default: undefined; }; /** * When true, this toast does not use the shared store or ToastContainer: * it renders and teleports (or renders in place) itself. Use when you * cannot or do not want to mount a single ``. * Default is false (toast is added to the store and shown by the container). */ standalone: { type: BooleanConstructor; default: boolean; }; }>> & Readonly<{ "onAction-button-click"?: ((...args: any[]) => any) | undefined; "onUser-dismissed"?: ((...args: any[]) => any) | undefined; "onAuto-dismissed"?: ((...args: any[]) => any) | undefined; }>, { icon: Icon; type: "notice" | "warning" | "error" | "success"; actionButtonLabel: string; target: TeleportTarget; renderInPlace: boolean; autoDismiss: number | boolean; preventUserDismiss: boolean; standalone: boolean; }, {}, { CdxToastDisplay: import("vue").DefineComponent; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; icon: { type: PropType; default: null; }; actionButtonLabel: { type: StringConstructor; default: string; }; preventUserDismiss: { type: BooleanConstructor; default: boolean; }; autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; renderInPlace: { type: BooleanConstructor; default: boolean; }; target: { type: PropType; default: undefined; }; }>, { dismissed: import("vue").Ref; toastElement: import("vue").Ref; rootClasses: import("vue").ComputedRef>; leaveActiveClass: import("vue").Ref; onDismiss: (eventName: "user-dismissed" | "auto-dismissed") => void; onActionButtonClick: () => void; onAfterLeave: () => void; onMouseEnter: () => void; onMouseLeave: () => void; computedTarget: import("vue").ComputedRef; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action-button-click" | "user-dismissed" | "auto-dismissed")[], "action-button-click" | "user-dismissed" | "auto-dismissed", import("vue").PublicProps, Readonly; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; icon: { type: PropType; default: null; }; actionButtonLabel: { type: StringConstructor; default: string; }; preventUserDismiss: { type: BooleanConstructor; default: boolean; }; autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; renderInPlace: { type: BooleanConstructor; default: boolean; }; target: { type: PropType; default: undefined; }; }>> & Readonly<{ "onAction-button-click"?: ((...args: any[]) => any) | undefined; "onUser-dismissed"?: ((...args: any[]) => any) | undefined; "onAuto-dismissed"?: ((...args: any[]) => any) | undefined; }>, { icon: Icon; type: "notice" | "warning" | "error" | "success"; actionButtonLabel: string; target: TeleportTarget; renderInPlace: boolean; autoDismiss: number | boolean; preventUserDismiss: boolean; }, {}, { CdxMessage: import("vue").DefineComponent; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; inline: { type: BooleanConstructor; default: boolean; }; icon: { type: PropType; default: null; }; fadeIn: { type: BooleanConstructor; default: boolean; }; allowUserDismiss: { type: BooleanConstructor; default: boolean; }; dismissButtonLabel: { type: StringConstructor; default: string; validator: (value: string, props: { [x: string]: unknown; }) => boolean; }; autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; actionButtonLabel: { type: StringConstructor; default: string; }; }>, { dismissed: import("vue").Ref; userDismissable: import("vue").ComputedRef; translatedDismissButtonLabel: import("vue").ComputedRef; rootClasses: import("vue").ComputedRef>; leaveActiveClass: import("vue").Ref; computedIcon: import("vue").ComputedRef; onDismiss: (eventName: "user-dismissed" | "auto-dismissed") => void; onActionButtonClick: () => void; cdxIconClose: string; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("action-button-click" | "user-dismissed" | "auto-dismissed")[], "action-button-click" | "user-dismissed" | "auto-dismissed", import("vue").PublicProps, Readonly; default: string; validator: import("../../types").StringTypeValidator<"notice" | "warning" | "error" | "success">; }; inline: { type: BooleanConstructor; default: boolean; }; icon: { type: PropType; default: null; }; fadeIn: { type: BooleanConstructor; default: boolean; }; allowUserDismiss: { type: BooleanConstructor; default: boolean; }; dismissButtonLabel: { type: StringConstructor; default: string; validator: (value: string, props: { [x: string]: unknown; }) => boolean; }; autoDismiss: { type: (BooleanConstructor | NumberConstructor)[]; default: boolean; validator: (value: unknown) => boolean; }; actionButtonLabel: { type: StringConstructor; default: string; }; }>> & Readonly<{ "onAction-button-click"?: ((...args: any[]) => any) | undefined; "onUser-dismissed"?: ((...args: any[]) => any) | undefined; "onAuto-dismissed"?: ((...args: any[]) => any) | undefined; }>, { icon: Icon; type: "notice" | "warning" | "error" | "success"; actionButtonLabel: string; inline: boolean; fadeIn: boolean; allowUserDismiss: boolean; dismissButtonLabel: string; autoDismiss: number | boolean; }, {}, { CdxButton: import("vue").DefineComponent; default: string; validator: import("../../types").StringTypeValidator<"default" | "progressive" | "destructive">; }; weight: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"normal" | "primary" | "quiet">; }; size: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"medium" | "large" | "small">; }; }>, { button: import("vue").Ref; rootClasses: import("vue").ComputedRef<{ [x: string]: boolean; 'cdx-button--framed': boolean; 'cdx-button--icon-only': boolean; 'cdx-button--is-active': boolean; }>; onClick: (event: Event) => void; onKeyDown: () => void; onKeyUp: () => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly; default: string; validator: import("../../types").StringTypeValidator<"default" | "progressive" | "destructive">; }; weight: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"normal" | "primary" | "quiet">; }; size: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"medium" | "large" | "small">; }; }>> & Readonly<{ onClick?: ((...args: any[]) => any) | undefined; }>, { size: "medium" | "large" | "small"; action: "default" | "progressive" | "destructive"; weight: "normal" | "primary" | "quiet"; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; CdxIcon: import("vue").DefineComponent; required: true; }; iconLabel: { type: StringConstructor; default: string; }; lang: { type: PropType; default: null; }; dir: { type: PropType; default: null; }; size: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"medium" | "small" | "x-small">; }; }>, { rootElement: import("vue").Ref; rootClasses: import("vue").ComputedRef<{ [x: string]: boolean; 'cdx-icon--flipped': boolean; }>; iconSvg: import("vue").ComputedRef; iconPath: import("vue").ComputedRef; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; required: true; }; iconLabel: { type: StringConstructor; default: string; }; lang: { type: PropType; default: null; }; dir: { type: PropType; default: null; }; size: { type: PropType; default: string; validator: import("../../types").StringTypeValidator<"medium" | "small" | "x-small">; }; }>> & Readonly<{}>, { lang: string | null; iconLabel: string; dir: import("../../types").HTMLDirection | null; size: "medium" | "small" | "x-small"; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; export default _default;