import { ComponentType } from 'react'; import { WithStyledProps } from '@mapples/style'; import { ColorValue, StyleProp, TextStyle } from 'react-native'; /** * Uniform props every icon-family glyph component accepts. * * @public */ export interface IconGlyphProps { /** Glyph name within the family */ name: string; /** Font size of the glyph */ size?: number; /** Glyph color */ color?: ColorValue; /** Additional text styling */ style?: StyleProp; } /** * Map of glyph name to codepoint for one icon family. * * @public */ export type IconGlyphMap = Record; /** * Persisted identifier of an icon family. FontAwesome 5/6 expose one entry per * variant so the `Icon` component API stays at exactly two props * (`iconStyle` + `iconName`). * * @public */ export type IconFamilyKey = 'ant-design' | 'entypo' | 'evil-icons' | 'feather' | 'fontawesome' | 'fontawesome5-solid' | 'fontawesome5-regular' | 'fontawesome5-brands' | 'fontawesome6-solid' | 'fontawesome6-regular' | 'fontawesome6-brands' | 'fontisto' | 'foundation' | 'ionicons' | 'lucide' | 'material-design-icons' | 'material-icons' | 'octicons' | 'simple-line-icons' | 'zocial'; /** * One registered icon family: its persisted key, human label, the npm package * that ships the font, whether that package resolved, the styled()-wrapped * glyph component, and the glyph map (used by editor pickers for name lists * and previews — empty when the package is not installed). * * @public */ export interface IconFamily { key: IconFamilyKey; label: string; /** The `@react-native-vector-icons/*` package that ships this family. */ npm: string; /** Whether {@link IconFamily.npm} resolved when the bundle was built. */ installed: boolean; Component: ComponentType>; glyphMap: IconGlyphMap; } /** * The npm package behind each icon family. FontAwesome 5/6 variants share one * package each. * * @public */ export declare const ICON_FAMILY_NPM: Record; /** * Registry of every known icon family, keyed by the persisted * {@link IconFamilyKey}. Every key is always present; check * {@link IconFamily.installed} before relying on a family's glyphs. * * @public */ export declare const IconFamilies: Record; //# sourceMappingURL=families.d.ts.map