import { CSSResultGroup, TemplateResult, LitElement } from 'lit'; type SbbToastPositionVertical = 'top' | 'bottom'; type SbbToastPositionHorizontal = 'left' | 'start' | 'center' | 'right' | 'end'; export type SbbToastPosition = `${SbbToastPositionVertical}-${SbbToastPositionHorizontal}`; declare const SbbToastElement_base: import('../core/mixins.js').AbstractConstructor & typeof LitElement; /** * It displays a toast notification. * * @slot - Use the unnamed slot to add content to the `sbb-toast`. * @slot icon - Assign a custom icon via slot. * @slot action - Provide a custom action for this toast. * @event {CustomEvent} willOpen - Emits whenever the `sbb-toast` starts the opening transition. Can be canceled. * @event {CustomEvent} didOpen - Emits whenever the `sbb-toast` is opened. * @event {CustomEvent} willClose - Emits whenever the `sbb-toast` begins the closing transition. Can be canceled. * @event {CustomEvent} didClose - Emits whenever the `sbb-toast` is closed. * @cssprop [--sbb-toast-z-index=var(--sbb-overlay-default-z-index)] - To specify a custom stack order, * the `z-index` can be overridden by defining this CSS variable. The default `z-index` of the * component is set to `var(--sbb-overlay-default-z-index)` with a value of `1000`. */ export declare class SbbToastElement extends SbbToastElement_base { static styles: CSSResultGroup; static readonly events: { readonly willOpen: "willOpen"; readonly didOpen: "didOpen"; readonly willClose: "willClose"; readonly didClose: "didClose"; }; /** * The length of time in milliseconds to wait before automatically dismissing the toast. * If 0, it stays open indefinitely. */ timeout: number; /** The position where to place the toast. */ position: SbbToastPosition; /** Whether the toast has a close button. */ dismissible: boolean; /** * The ARIA politeness level. * Check https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions#live_regions for further info */ politeness: 'polite' | 'assertive' | 'off'; private set _state(value); private get _state(); /** Emits whenever the `sbb-toast` starts the opening transition. */ private _willOpen; /** Emits whenever the `sbb-toast` is opened. */ private _didOpen; /** Emits whenever the `sbb-toast` begins the closing transition. */ private _willClose; /** Emits whenever the `sbb-toast` is closed. */ private _didClose; private _closeTimeout?; private _abort; private _language; /** * Role of the live region. This is only for Firefox as there is a known issue where Firefox + * JAWS does not read out aria-live message. */ private get _role(); /** * Open the toast. * If there are other opened toasts in the page, close them first. */ open(): void; /** * Close the toast. */ close(): void; private _onClick; constructor(); connectedCallback(): void; disconnectedCallback(): void; /** * Slotted text nodes are not read correctly by screen readers on Chrome. * To address the problem, if there is at least a root text node, * we wrap the whole content in a tag */ private _onContentSlotChange; private _onActionSlotChange; private _onToastAnimationEnd; /** * Since we do not stack toasts, we force the closing on other existing opened ones */ private _closeOtherToasts; protected render(): TemplateResult; } declare global { interface HTMLElementTagNameMap { 'sbb-toast': SbbToastElement; } } export {}; //# sourceMappingURL=toast.d.ts.map