import * as React from 'react'; type EmojiClickData = { activeSkinTone: SkinTones; unified: string; unifiedWithoutSkinTone: string; emoji: string; names: string[]; imageUrl: string; getImageUrl: (emojiStyle?: EmojiStyleValue) => string; isCustom: boolean; }; type CategoryConfig = { category: Categories; name: string; icon?: React.ReactNode; /** * Selects a `CustomEmoji` group for `Categories.CUSTOM` entries. Each * grouped entry renders its own section and nav tab; ungrouped entries * share the classic customs bucket. */ group?: string; }; type CategoryIcons = Partial>; type EmojiData = { categories: Partial>; emojis: Record; }; interface DataEmoji { n: string[]; u: string; v?: string[]; a: string; } declare enum SuggestionMode { RECENT = "recent", FREQUENT = "frequent" } type SuggestionModeValue = SuggestionMode | 'recent' | 'frequent'; declare enum EmojiStyle { NATIVE = "native", APPLE = "apple", TWITTER = "twitter", GOOGLE = "google", FACEBOOK = "facebook" } type EmojiStyleValue = EmojiStyle | 'native' | 'apple' | 'twitter' | 'google' | 'facebook'; declare enum Theme { DARK = "dark", LIGHT = "light", AUTO = "auto" } type ThemeValue = Theme | 'dark' | 'light' | 'auto'; declare enum SkinTones { NEUTRAL = "neutral", LIGHT = "1f3fb", MEDIUM_LIGHT = "1f3fc", MEDIUM = "1f3fd", MEDIUM_DARK = "1f3fe", DARK = "1f3ff" } /** A skin tone as the enum or its literal value (`'neutral'`, `'1f3fb'`, …). */ type SkinTonesValue = SkinTones | 'neutral' | '1f3fb' | '1f3fc' | '1f3fd' | '1f3fe' | '1f3ff'; declare enum Categories { SUGGESTED = "suggested", CUSTOM = "custom", SMILEYS_PEOPLE = "smileys_people", ANIMALS_NATURE = "animals_nature", FOOD_DRINK = "food_drink", TRAVEL_PLACES = "travel_places", ACTIVITIES = "activities", OBJECTS = "objects", SYMBOLS = "symbols", FLAGS = "flags" } declare enum SkinTonePickerLocation { SEARCH = "SEARCH", PREVIEW = "PREVIEW", /** * No built-in placement: render the `SkinTone` primitive wherever you * want it, or drive the tone through `skinTone` / `useSkinTone()`. */ NONE = "NONE" } declare enum EmojiProperties { name = "n", unified = "u", variations = "v", added_in = "a", imgUrl = "imgUrl" } /** The emoji a custom `Emoji` cell renders. */ type ListEmoji = { /** True while hovered or keyboard-focused. */ isActive: boolean; /** Unified code including the active skin tone, e.g. `1f44d-1f3fd`. */ unified: string; names: string[]; /** Native emoji text (custom emojis: their id). */ emoji: string; isCustom: boolean; /** Active image style URL, or undefined for standard native emojis. */ imageUrl?: string; /** Whether a long press opens skin tone variations. */ hasVariations: boolean; }; /** * Props for a custom emoji cell. Spread everything except `emoji` onto a * `