import type { PropertyValues } from 'lit'; import { LitElement } from 'lit'; import type { Size } from '@nvidia-elements/core/internal'; import type { IconName, IconSVG } from './icons.js'; export type { IconName, IconSVG } from './icons.js'; declare global { var _NVE_SSR_ICON_REGISTRY: Record | undefined; } /** * @element nve-icon * @since 0.1.3 * @entrypoint \@nvidia-elements/core/icon * @description Renders a named SVG from the Elements icon catalog or custom SVG content. Import individual icons to reduce initial loading. The built-in catalog loads on demand for unregistered names. * @documentation https://nvidia.github.io/elements/docs/elements/icon/ * @cssprop --color * @cssprop --width * @cssprop --height * @slot - Custom SVG content to override the named icon * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img */ export declare class Icon extends LitElement { #private; /** * Visual treatment to represent current support status. */ status?: 'warning' | 'danger' | 'success' | 'accent'; /** * Controls the bounding box size of the icon given a t-shirt style value. */ size?: Size | 'xs' | 'xl'; /** * Sets the direction of the icon. Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions) */ direction?: 'up' | 'down' | 'left' | 'right'; /** * Selects the outline or solid form of the named icon. Solid icons use an optional `-solid` asset and fall back to * the outline form when that asset is unavailable. */ appearance?: 'outline' | 'solid'; /** * A built-in icon name, a registered name in `namespace:name` form, or a URL ending in `.svg`. * SVG URLs load directly in the browser. Use `Icon.add()` to register SVG markup by name. */ name?: IconName | `${string}:${string}` | `${string}.svg`; private svg; static styles: import("lit").CSSResult[]; static readonly metadata: { tag: string; version: string; }; static _registry: import("./registry.js").IconRegistry; static get _icons(): Record; static set _icons(icons: Record); /** @private */ _internals: ElementInternals; render(): import("lit-html").TemplateResult<1>; connectedCallback(): void; disconnectedCallback(): void; /** * Registers trusted SVGs by name. Pass SVG markup to make the SVG available during server rendering. * Pass an object with an `svg` callback to load artwork on demand in the browser. * Register an optional `-solid` entry to use with `appearance="solid"`. */ static add(icons: Record): Promise; static alias(aliases: { [key: string]: IconName | string; }): void; updated(props: PropertyValues): Promise; } export declare function mergeIcons(RegisteredIcon: typeof Icon): void;