import type { ReactNode } from 'react'; import { type IconSpec } from './icon-spec'; export type IconResolver = (spec: string) => IconSpec | ReactNode | null | undefined; /** Outcome of resolving: a built-in spec, or a node the host rendered itself. */ export type ResolvedIcon = IconSpec | { kind: 'node'; node: ReactNode; }; /** Registers a resolver; returns the disposer that removes it. */ export declare function registerIconResolver(fn: IconResolver): () => void; /** Host resolvers first (newest first), then the built-in parser. */ export declare function resolveIconSpec(spec: unknown): ResolvedIcon; //# sourceMappingURL=icon-resolvers.d.ts.map