import type { ExtractAssetName, ExtractAssetSet } from '@odx/assets-utils'; import { OdxAssetElement } from '@odx/assets-utils/element.js'; declare global { export interface _OdxIcon { } interface HTMLElementTagNameMap { 'odx-icon': OdxIconElement; } } /** * @deprecated Use name with format `set::name` instead */ export type DeprecatedOdxIconName = Exclude, keyof _OdxIcon>; export type OdxIconName = keyof _OdxIcon | DeprecatedOdxIconName; export type OdxIconSet = ExtractAssetSet; export type OdxIconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; export interface OdxIconElement { set name(value: OdxIconName); get name(): OdxIconName; /** * @deprecated Use name property with format `set::name` instead */ set set(value: OdxIconSet); get set(): OdxIconSet; } /** * @tag odx-icon * @summary Icons are scalable vector graphics used to represent actions, * states, and interface controls. * * @csspart svg - The SVG element representing the icon */ export declare class OdxIconElement extends OdxAssetElement { static defaultSet: OdxIconSet; static readonly styles: string; readonly namespace = "odx-icon"; set size(value: (OdxIconSize | (string & {})) | null | undefined); get size(): OdxIconSize | (string & {}) | undefined; }