import React from "react"; import { IconColor } from "@rebasepro/ui"; /** * Render an icon element from a string key or existing React element. * * Whether a key names an icon is decided here, against `iconKeys` — an array * of strings. The component behind the key is fetched by `LucideIconByName` on * first use: this used to index lucide's full `icons` map, which is the whole * library and cannot be tree-shaken. */ export declare function getIcon(iconKey?: string | React.ReactNode, className?: string, color?: IconColor, size?: "smallest" | "small" | "medium" | "large" | number): React.ReactElement | undefined; export type IconViewProps = { slug: string; name: string; singularName?: string; group?: string; icon?: string | React.ReactNode; }; export declare const IconForView: React.MemoExoticComponent<({ collectionOrView, className, color, size }: { collectionOrView?: IconViewProps; color?: IconColor; className?: string; size?: "smallest" | "small" | "medium" | "large" | number; }) => React.ReactElement>;