import { ComponentType, SVGProps } from 'react'; /** * Icon names an app allows. Empty here: an app narrows `MaterialIcon`'s `name` to the icons it registered: * * declare module '@stokr/components-library' { interface MaterialIconRegistry { name: 'home' | 'download' } } */ export interface MaterialIconRegistry { } export type MaterialIconName = MaterialIconRegistry extends { name: infer K extends string; } ? K : string; type SvgComponent = ComponentType>; /** * Registers the Material Symbols an app uses, as SVG components keyed `/` (`-fill` for filled, `@` for a weight other than 400): the * paths in the `@material-symbols/svg-` packages. Only these are bundled; `MaterialIcon` draws them inline. * Call once at module scope in an entry shared by server and client; with Module Federation the host's call covers * the remotes (the library is a shared singleton). * * import home from '@material-symbols/svg-400/outlined/home.svg?react' * registerMaterialIcons({ 'outlined/home': home }) */ export declare function registerMaterialIcons(icons: Record): void; export declare function getRegisteredMaterialIcon(key: string): SvgComponent; export {};