UNPKG

@chayns-components/emoji-input

Version:
23 lines (22 loc) 655 B
import type { Category } from '../types/category'; export interface HistoryItem { count: number; emoji: string; modifiedTime: string; name: string; skin_tone_support: boolean; } interface UseEmojiHistoryOptions { accessToken?: string; personId?: string; selectedCategory: Category; } export declare const useEmojiHistory: ({ accessToken, personId, selectedCategory, }: UseEmojiHistoryOptions) => { addOrUpdateEmojiInHistory: ({ emoji, name, skin_tone_support, }: { emoji: string; name: string; skin_tone_support: boolean; }) => Promise<void>; historyEmojis: HistoryItem[]; }; export {};