import { EventEmitter } from "../../stencil-public-runtime"; import { IcActivationTypes, IcStatusVariants, IcThemeMode } from "../../utils/types"; /** * @slot action - IcButton or IcLink is placed below header and message. If used will default toast to manual `dismiss` type. * @slot neutral-icon - A custom neutral icon is placed on the left side of the component. If used will default toast to `neutral` variant. */ export declare class Toast { private dismissTimeout; private interactiveElements; private neutralVariantLabel; private timerRefreshInterval; private focusInteractiveElement; private shiftKeyPressed; el: HTMLIcToastElement; isManual: boolean; timerProgress: number; visible: boolean; /** * Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. */ theme: IcThemeMode; /** * If toast dismissMode is set to `automatic`, use this prop to define the time before the toast dismisses (in MILLISECONDS) * (NOTE: Has a minimum value of `5000ms`) */ autoDismissTimeout?: number | undefined; /** * If toast can be manually dismissed, this prop sets a custom aria-label for the ic-button component */ dismissButtonAriaLabel?: string | undefined; /** * How the toast will be dismissed. If manual will display a dismiss button. */ dismissMode?: IcActivationTypes; dismissModeChangeHandler(newValue: IcActivationTypes): void; /** * The title to display at the start of the toast. (NOTE: Should be no more than `70` characters) */ heading: string; /** * The main body message of the toast. (NOTE: Should be no more than `140` characters) */ message?: string; /** * Provides a custom alt-text to be announced to screen readers, if slotting a custom neutral icon */ neutralIconAriaLabel?: string; /** * The variant of the toast being rendered */ variant?: IcStatusVariants; /** * Is emitted when the user dismisses the toast */ icDismiss: EventEmitter; disconnectedCallback(): void; componentWillLoad(): void; componentDidLoad(): void; componentDidUpdate(): void; watchVisibleHandler(): void; handleDismiss(): void; handleKeyboard(ev: KeyboardEvent): void; handleTimer(ev: MouseEvent): void; /** * @internal Used to display the individual toast. * @returns The element that previously had focus before the toast appeared */ setVisible(): Promise; private dismissAction; private handleProgressChange; private handleLongText; private findNextInteractiveElement; private resetAutoDismissTimer; private isActive; private onFocus; private onBlur; render(): any; }