import { LitElement } from "lit"; export type SnackbarVariant = "positive" | "warning" | "negative" | "info" | "neutral"; export type SnackbarActionPlacement = "inline" | "block"; export declare enum SnackbarDuration { Short = 4000, Long = 10000, Infinite = 120000000 } /** * An item to show in a `w-snackbar`. * * See the `create` function on `w-snackbar` for a convenience API which helps you make snackbar items. * * [Warp component reference](https://warp-ds.github.io/docs/components/snackbar/frameworks/elements) * * @parent w-snackbar * * @slot default - the snackbar message. * @slot icon - icon preceeding the message. * @slot action - action following the message. * * @csspart item - the container wrapping the message, icon and actions. * @csspart icon - the icon for the variant. * @csspart message - the default slot, body of the snackbar item. * @csspart action - close and action button. * * @cssprop --w-c-snackbar-item-radius * @cssprop --w-c-snackbar-item-max-width * @cssprop --w-c-snackbar-item-min-width * @cssprop --w-c-snackbar-item-padding * * @cssprop --w-c-snackbar-item-bg * @cssprop --w-c-snackbar-item-action-bg-active * @cssprop --w-c-snackbar-item-action-bg-hover * * @cssprop --w-c-snackbar-item-color * @cssprop --w-c-snackbar-item-action-color-active * @cssprop --w-c-snackbar-item-action-color-hover * * @cssprop --w-c-snackbar-item-box-shadow */ export declare class WarpSnackbarItem extends LitElement { #private; static styles: import("lit").CSSResult[]; /** * The placement of the action and close buttons. */ actionPlacement: SnackbarActionPlacement; /** * How long the message should stay in the document before removing itself. */ duration: number; private root; private hasAction; connectedCallback(): void; disconnectedCallback(): void; updated(): Promise; /** * Remove the snackbar item from the document. * * Moves focus to the last focused element outside of the snackbar item, if available. */ close(): void; protected firstUpdated(): void; render(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { "w-snackbar-item": WarpSnackbarItem; } }