/** * Type-Safe Icon Map * * This file provides a type-safe mapping of icon names to Lucide React icon components. * Using this map instead of dynamic imports ensures: * - Full TypeScript type checking * - IDE auto-completion * - Compile-time error detection * - No runtime errors from invalid icon names * * @example * ```typescript * import { ICON_MAP, getIcon } from './icon-map' * * // Type-safe icon access * const HomeIcon = ICON_MAP.Home * const Icon = getIcon('Home') // Returns Home icon * const Fallback = getIcon('InvalidName') // Returns HelpCircle * ``` */ import { type LucideIcon } from 'lucide-react'; /** * Icon Map * * Maps string icon names to actual Lucide icon components. * Add new icons here as needed. */ export declare const ICON_MAP: { readonly Home: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly CheckSquare: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Plus: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Settings: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Menu: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Search: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly ChevronLeft: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly User: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Users: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly CreditCard: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Key: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Shield: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly LogOut: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Bell: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Sun: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Moon: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly FileText: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly Sparkles: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly PackageSearch: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; readonly HelpCircle: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; }; /** * Icon Name Type * * Union type of all valid icon names. * TypeScript will enforce that only these names can be used. */ export type IconName = keyof typeof ICON_MAP; /** * Get Icon Component * * Type-safe function to get an icon component by name. * Returns HelpCircle as fallback if icon name is not found. * * @param name - The icon name * @returns The icon component * * @example * ```typescript * const HomeIcon = getIcon('Home') * const FallbackIcon = getIcon('NonExistent' as IconName) * ``` */ export declare function getIcon(name: IconName): LucideIcon; /** * Validate Icon Name * * Checks if a string is a valid icon name. * Useful for runtime validation of config files. * * @param name - The name to validate * @returns True if the name is a valid icon name * * @example * ```typescript * if (isValidIconName('Home')) { * // Safe to use * } * ``` */ export declare function isValidIconName(name: string): name is IconName; /** * Get All Icon Names * * Returns an array of all valid icon names. * Useful for validation or documentation. * * @returns Array of icon names */ export declare function getAllIconNames(): IconName[]; //# sourceMappingURL=icon-map.d.ts.map