import { IconName } from '../../types'; export type SvgIconComponent = (typeof import('*.svg?react'))['default']; export declare const getCachedIcon: (iconName: IconName) => SvgIconComponent | undefined; /** * Registers a statically imported SVG component so that `DSIcon` renders it * without a dynamic import. Used for icons that are part of a component's own chunk. */ export declare const registerIcon: (iconName: IconName, icon: SvgIconComponent) => void; export declare const importIcon: (iconName: IconName) => Promise; /** * Returns the cached icon and re-renders once it has been imported. * The server and hydration always see an empty cache, so the server markup * matches no matter which icons the browser has already cached. * React 17 lacks `useSyncExternalStore` and falls back to reading the cache in a layout effect. */ export declare const useCachedIcon: (iconName: IconName) => SvgIconComponent | undefined;