state sync

This commit is contained in:
2025-11-23 14:59:17 -08:00
parent 537bdf1ad7
commit 39f4a8d3fc
812 changed files with 373062 additions and 84 deletions

View File

@@ -0,0 +1,18 @@
import type { IconifyIcon, IconifyJSON } from '@iconify/types';
import type { IconifyIconCustomisations } from '@iconify/utils';
interface AsyncIconLoader {
name: string;
loader: () => Promise<IconifyJSON>;
}
interface SyncIconLoader {
name: string;
icons: IconifyJSON;
}
export type IconLoader = AsyncIconLoader | SyncIconLoader;
export declare const unknownIcon: IconifyIcon;
export declare const registerIconPacks: (iconLoaders: IconLoader[]) => void;
export declare const isIconAvailable: (iconName: string) => Promise<boolean>;
export declare const getIconSVG: (iconName: string, customisations?: IconifyIconCustomisations & {
fallbackPrefix?: string;
}, extraAttributes?: Record<string, string>) => Promise<string>;
export {};