import{type TemplateResult}from'lit';import{LyraElement}from'../../../internal/lyra-element.js';import type{LyraSize}from'../../../internal/variants.js';import type{LyraToastItem,LyraToastVariant}from'./toast-item.class.js';import'./toast-item.class.js';export type LyraToastPlacement='top-start'|'top-center'|'top-end'|'bottom-start'|'bottom-center'|'bottom-end';export type LyraToastIconContent=string|Node|TemplateResult;export type LyraToastIcon=LyraToastIconContent|((ownerDocument:Document)=>LyraToastIconContent); /** Canonical options shared by the imperative helper and a toast region's object-form `create()`. */ export interface LyraToastOptions{message:string;placement?:LyraToastPlacement;ownerDocument?:Document;variant?:LyraToastVariant;duration?:number; /** Item size. Long upstream spellings remain observable on the created item. */ size?:LyraSize;withIcon?:boolean; /** Safe icon content. Strings are text, nodes are appended/imported, and factories may return a * Lit template for the target document; no branch interprets a string as HTML. */ icon?:LyraToastIcon; /** Optional action button rendered after the message. */ action?:{label:string;onClick:(item:LyraToastItem)=>void;};} /** Options accepted beside the legacy string-form `create(message, options)`. */ export type LyraToastCreateOptions=Omit;export interface LyraToastOverflowDetail{ /** Number of queued notifications discarded in the coalesced admission burst. */ count:number;}export interface LyraToastEventMap{'lr-toast-overflow':CustomEvent;} /** * `` — one placement-specific stacking toast region. The `toast()` helper maintains one * region per owner document and placement. Each keeps at most three items active and twenty more * in a hidden, inert FIFO queue. Further admissions discard the * oldest queued work and report the coalesced loss through an event and polite announcement. * Membership is reconciled before every admission and reasserted after reconnect/reparent; a * lasting region disconnect discards managed work instead of retaining nodes that could resurrect. * Mirrors the Web Awesome `` API under the `lr-` prefix. * * @customElement lr-toast * @slot - `` elements. * @event lr-toast-overflow - Noncancelable notification that queued items were discarded to keep * the stack bounded. Synchronous losses are coalesced into `detail: { count }`. * @csspart stack - The fl-column container holding the items. * @cssprop --gap - Mapped alias for `--lr-toast-gap`. * @cssprop --width - Mapped alias for `--lr-toast-width`. * @cssprop [--lr-toast-gap=var(--lr-space-s)] - Gap between stacked items. * @cssprop [--lr-toast-width=var(--lr-size-28rem)] - Inline size of the stack, capped by the * usable logical safe-area rectangle. * @cssprop [--lr-toast-accent-width=var(--lr-size-4px)] - Width of a slotted item's accent bar. * Read by ``'s own stylesheet, so set it on the item. * @cssprop [--lr-toast-accent-color=var(--lr-color-border)] - Accent bar / icon color of a slotted * item. Its private default follows `variant`; an inherited or direct public value wins. * @cssprop [--lr-toast-padding=var(--lr-space-m)] - Padding of a slotted item. Its private default * follows `size`; an inherited or direct public value wins. * @cssprop [--lr-toast-font-size=var(--lr-font-size-m)] - Font size of a slotted item. Its private * default follows `size`; an inherited or direct public value wins. * @cssprop [--lr-toast-show-duration=var(--lr-transition-base, 180ms ease-out)] - Show transition * of a slotted item. Read by ``, so set it on the item. * @cssprop [--lr-toast-hide-duration=var(--lr-transition-base, 180ms ease-out)] - Hide transition * of a slotted item. Read by ``, so set it on the item. * @cssstate visible - Present while the region contains at least one toast item. * @status stable * @since 4.0.0 */ export declare class LyraToast extends LyraElement{static styles:import("lit").CSSResultGroup[]; /** Where the stack anchors on screen. */ placement:LyraToastPlacement;private readonly toastInternals;private childObserver?;private readonly managedEntries;private readonly activeEntries;private readonly queuedEntries;private readonly admissionsInProgress;private connectionGeneration;private overflowSink?;private pendingOverflowCount;private overflowNotificationScheduled; /** Live stack element, or `null` before the render root is populated. */ get stack():HTMLElement|null;private syncVisibleState;connectedCallback():void;disconnectedCallback():void;private get regionController();private admitEntry;private reassertEntry;private pruneAbsentEntries;private forgetEntry;private promoteQueuedEntries;private reconcileEntries;private recordOverflow; /** Create and append a toast item programmatically. The object form shares the canonical * `LyraToastOptions` contract with `toast()`; the legacy string form remains supported. A * detached region rejects immediately rather than returning an update promise that cannot run. */ create(options:LyraToastOptions):Promise;create(message:string,options?:LyraToastCreateOptions):Promise;render():TemplateResult;}declare global{interface HTMLElementTagNameMap{'lr-toast':LyraToast;}}