import LibraryBaseElement from '../../internal/library-base-element.js'; import type { CSSResultGroup } from 'lit'; /** * @summary Icons are symbols that can be used to represent various options within an application. * @documentation /components/icon * @status stable * @since 1.5 * * @event o-load - Emitted when the icon has loaded. When using `spriteSheet: true` this will not emit. * @event o-error - Emitted when the icon fails to load due to an error. When using `spriteSheet: true` this will not emit. * * * * @csspart svg - The internal SVG element. * @csspart use - The element generated when using `spriteSheet: true` * @csspart fallback - The slot containing the fallback. */ export default class OIcon extends LibraryBaseElement { static styles: CSSResultGroup; private initialRender; /** Given a URL, this function returns the resulting SVG element or an appropriate error symbol. */ private resolveIcon; private svg; /** The name of the icon to draw. Available names depend on the icon library being used. */ name?: string; /** * An external URL of an SVG file. Be sure you trust the content you are including, as it will be executed as code and * can result in XSS attacks. */ src?: string; /** * An alternate description to use for assistive devices. If omitted, the icon will be considered presentational and * ignored by assistive devices. */ label: string; /** The name of a registered custom icon library. */ library: string; connectedCallback(): void; firstUpdated(): void; disconnectedCallback(): void; private getUrl; handleLabelChange(): void; setIcon(): Promise; render(): import("lit-html").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'o-icon': OIcon; } }