import { ComponentInterface, EventEmitter } from '../../stencil-public-runtime'; import { SnackbarLabels, SnackbarType } from '../types'; /** * Snackbars provide brief messages about app processes at the bottom of the screen. It functions as a wrapper around the material design's [Snackbar](https://github.com/material-components/material-components-web/tree/master/packages/mdc-snackbar) component. * * @slot icon-slot - Use this slot to add a custom icon (e.g., `` or ``) inside the `ino-snackbar`. */ export declare class Snackbar implements ComponentInterface { private snackbarInstance; private snackbarElement; private nodeTimeout; el: HTMLInoSnackbarElement; /** * [DEPRECATED] Please use the default slot instead * The text message to display. * @deprecated */ message?: string; /** * The text to display for the action button. * If no text is defined, the snack bar is displayed in an alternative feedback style. */ actionText?: string; /** * Controls the visibility state of the snackbar. * When set to `true`, the snackbar is displayed; otherwise, it is hidden. */ open: boolean; /** * Changes the snackbar type. There are four types of messages: info, success, warning and error. */ type: SnackbarType; /** * Sets the timeout in ms until the snackbar disappears. The timeout can * be disabled by setting it to a negative value. */ timeout?: number; /** * If set to true, the timeout that closes the snackbar is paused when the user hovers over the snackbar. */ stayVisibleOnHover?: boolean; /** * The aria-labels used to provide accessible snackbar context as well as close icon button label. */ a11yLabels?: SnackbarLabels; /** * Event that emits as soon as the action button is clicked. */ actionClick: EventEmitter; /** * Event that emits as soon as the snackbar hides. * Listen to this event to hide or destroy this element. */ hideEl: EventEmitter; handleKeyUp(event: KeyboardEvent): void; openChanged(open: boolean): void; componentDidLoad(): void; disconnectedCallback(): void; private setupTimeout; private interruptTimeout; private handleSnackbarHide; private mapTypeToIconName; private getAriaRole; render(): any; }