import { iconRegistry } from './icon.registry.js';
/**
 * Register a Phosphor icon with pre-loaded SVG content.
 *
 * @example
 * ```typescript
 * // With Vite's ?raw imports (bundles SVG at build time):
 * import checkSvg from '@phosphor-icons/core/regular/check.svg?raw';
 * import checkBoldSvg from '@phosphor-icons/core/bold/check.svg?raw';
 *
 * registerPhosphorIcon('check', checkSvg);
 * registerPhosphorIcon('check', checkBoldSvg, 'bold');
 * ```
 */
export function registerPhosphorIcon(name, svg, weight = 'regular') {
    iconRegistry.register(name, svg, weight);
}
/**
 * Register multiple Phosphor icons at once.
 *
 * @example
 * ```typescript
 * import checkSvg from '@phosphor-icons/core/regular/check.svg?raw';
 * import xSvg from '@phosphor-icons/core/regular/x.svg?raw';
 * import warningSvg from '@phosphor-icons/core/fill/warning.svg?raw';
 *
 * registerPhosphorIcons([
 *   { name: 'check', svg: checkSvg },
 *   { name: 'x', svg: xSvg },
 *   { name: 'warning', svg: warningSvg, weight: 'fill' }
 * ]);
 * ```
 */
export function registerPhosphorIcons(icons) {
    for (const icon of icons) {
        iconRegistry.register(icon.name, icon.svg, icon.weight ?? 'regular');
    }
}
/**
 * @deprecated Use registerPhosphorIcon instead
 */
export const registerPhosphorIconSync = registerPhosphorIcon;
