import { LitElement } from 'lit'; /** * @htmlElement `` * * A Web Component that provides a consistent loading element. When in the loading state, * the element shows a spinner that covers all content inside of its parent element. * When a search succeeds, the spinner is hidden. When no results are returned or an * error occurs, an alert element is shown that reports the state of the search. * * @example * By default, the loading element is not visible. It should be interacted with via * JavaScript: * ```html * * * * * * ``` * * @example * By default, the loading element uses "data" in its alert messages, e.g. "No data * loaded". This can be override using the {@link dataType | `dataType`} * attribute/property: * ```html * * * * *
* *
* ``` */ export declare class LisLoadingElement extends LitElement { /** @ignore */ static styles: import("lit").CSSResult; /** @ignore */ createRenderRoot(): this; /** * The type of data being loaded. * * @attribute */ dataType: string; state: 'loading' | 'loaded' | 'message'; private _alertRef; loading(): void; success(): void; noResults(): void; failure(): void; error(content: string): void; /** @ignore */ render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'lis-loading-element': LisLoadingElement; } } //# sourceMappingURL=lis-loading-element.d.ts.map