import { UiElement } from '../shared/element.js'; export type InlineLoadingStatus = 'inactive' | 'active' | 'finished' | 'error'; /** * Carbon `InlineLoading`: a 16px spinner with a text beside it for in-place progress (saving, * submitting). `status` moves through `active` → `finished` (check mark, then `ui-success` after * `success-delay`) or `error` (error icon); `inactive` stops the spinner as Carbon web components do * (it turns out and its rings run out over 1.4s; at once with reduced motion). The text is a polite * live region so screen readers hear the change. * * Geometry per Carbon `_inline-loading.scss`: 32px minimum height, 16px icon with 8px after it, * label-02 text in text-secondary. * * @slot - The status text (Carbon `description`) * @fires ui-success - `success-delay` ms after `status` became `finished` * @csspart base - The row * @csspart icon - The spinner / check / error icon * @csspart text - The description */ export declare class UiInlineLoading extends UiElement { static readonly styles: import("lit").CSSResult; status: InlineLoadingStatus; /** Milliseconds after `finished` before `ui-success` fires (Carbon `successDelay`). */ successDelay: number; /** Accessible name of the icon; defaults to the status. */ iconLabel: string; private timer?; private readonly localize; connectedCallback(): void; protected updated(changed: Map): void; disconnectedCallback(): void; private renderIcon; render(): import("lit-html").TemplateResult<1>; } export interface UiInlineLoadingEventMap extends HTMLElementEventMap { 'ui-success': CustomEvent; } /** Typed listeners for UiInlineLoading's events (declaration merging with the class). */ export interface UiInlineLoading { addEventListener(type: K, listener: (this: UiInlineLoading, event: UiInlineLoadingEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void; addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void; removeEventListener(type: K, listener: (this: UiInlineLoading, event: UiInlineLoadingEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void; removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void; } declare global { interface HTMLElementTagNameMap { 'ui-inline-loading': UiInlineLoading; } }