import { type IAnimatable } from '../../../Behaviors/Animatable'; import { ToastPosition } from '../../../Types/ToastPosition'; import { OverlayElement } from '../Abstracts/OverlayElement'; import type { IToastElementProps } from './IToastElementProps'; declare const ToastElement_base: (abstract new (...args: Array) => import("../../../Behaviors/Themeable").IThemeableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Animatable").IAnimatableProps & IAnimatable) & (abstract new (...args: Array) => import("../../../Behaviors/Variantable").IVariantableProps) & (abstract new (...args: Array) => import("../../../Behaviors/TextFormattable").ITextFormattableProps) & (abstract new (...args: Array) => import("../../../Behaviors/Busyable").IBusyableProps) & typeof OverlayElement & import("../../../Behaviors/Themeable").IThemeableCtor; /** * Toast - A transient notification that appears briefly, typically near the edge of the screen. * * @description * Displays temporary messages with configurable position, timeout, and progress indicator. * Header and content text must be set via JavaScript. Only `timeout`, `position`, and * `show-progress` are reflected as HTML attributes. * * @name Toast * @element mosaik-toast * @category Overlays * * @slot actions - The actions slot. * * @example * Toast at the top with progress: * ```html * * ``` * * @example * Toast at bottom-center: * ```html * * ``` * * @public */ export declare class ToastElement extends ToastElement_base implements IToastElementProps, IAnimatable { private readonly _timer; private readonly _interval; private _intervalTick; private _header; private _content; private _timeout; private _position; private _showProgress; private _mouseOverSubscription; private _mouseOutSubscription; /** * @public */ constructor(); /** * Returns the `is` property. * The `is` property represents natural name of this element. * * @public * @static * @readonly */ static get is(): string; /** * Gets or sets the `header` property. * * @public */ get header(): string; set header(value: string); /** * Gets or sets the `content` property. * * @public */ get content(): string; set content(value: string); /** * Gets or sets the `timeout` property. * The timeout only when the given value is greater than zero. * * @public * @attr */ get timeout(): number; set timeout(value: number); /** * Gets or sets the `position` property. * * @public * @attr */ get position(): ToastPosition; set position(value: ToastPosition); /** * Gets or sets the `showProgress` property. * * @public * @attr */ get showProgress(): boolean; set showProgress(value: boolean); private set intervalTick(value); /** * Gets the animation target element. * For the toast, animations are applied to the root template part instead of the host element. * * @public * @override * @readonly */ get animationTarget(): HTMLElement; /** * Opens the `ToastElement`. * * @public * @override */ open(): Promise; /** * Closes the `ToastElement`. * * @public * @override */ close(): Promise; /** * @public * @override */ connectedCallback(): void; /** * @public * @override */ disconnectedCallback(): void; /** * @protected * @override */ protected onApplyTemplate(): void; /** * Handles the backdrop click event. * Only closes the toast if `clickOutsideToClose` is enabled. * * @private * @template */ onBackdrop(): void; /** * @protected */ protected onShowProgressPropertyChanged(): void; } /** * @public */ export declare namespace ToastElement { type Props = IToastElementProps; } /** * @public */ declare global { interface HTMLElementTagNameMap { 'mosaik-toast': ToastElement; } } export {}; //# sourceMappingURL=ToastElement.d.ts.map