2022-07-05 02:08:47 +00:00
|
|
|
|
2022-06-26 03:55:17 +00:00
|
|
|
declare module 'emoji-mart' {
|
2022-07-05 02:08:47 +00:00
|
|
|
export interface NativeEmoji {
|
2023-02-25 22:30:24 +00:00
|
|
|
unified: string
|
|
|
|
native: string
|
|
|
|
x: number
|
|
|
|
y: number
|
2022-07-05 02:08:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface CustomEmoji {
|
2022-07-04 20:30:35 +00:00
|
|
|
src: string
|
|
|
|
}
|
|
|
|
|
2022-07-05 02:08:47 +00:00
|
|
|
export interface Emoji<T> {
|
2023-02-25 22:30:24 +00:00
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
keywords: string[]
|
|
|
|
skins: T[]
|
|
|
|
version?: number
|
2022-07-04 20:30:35 +00:00
|
|
|
}
|
|
|
|
|
2022-07-05 03:45:01 +00:00
|
|
|
export interface EmojiPick {
|
2023-02-25 22:30:24 +00:00
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
native?: string
|
|
|
|
unified?: string
|
|
|
|
keywords: string[]
|
|
|
|
shortcodes: string
|
|
|
|
emoticons: string[]
|
|
|
|
src?: string
|
2022-07-05 03:45:01 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 20:30:35 +00:00
|
|
|
export interface PickerProps {
|
2023-02-25 22:30:24 +00:00
|
|
|
custom?: { emojis: Emoji<CustomEmoji> }[]
|
|
|
|
set?: string
|
|
|
|
title?: string
|
|
|
|
theme?: string
|
|
|
|
onEmojiSelect?: (emoji: EmojiPick) => void
|
|
|
|
recent?: any
|
|
|
|
skin?: any
|
|
|
|
perLine?: number
|
|
|
|
emojiSize?: number
|
|
|
|
emojiButtonSize?: number
|
|
|
|
navPosition?: string
|
|
|
|
autoFocus?: boolean
|
|
|
|
i18n?: any
|
|
|
|
getImageURL: (set: string, name: string) => string
|
|
|
|
getSpritesheetURL: (set: string) => string
|
2022-06-26 03:55:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export class Picker {
|
|
|
|
|
|
|
|
constructor(props: PickerProps);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2022-07-03 08:12:57 +00:00
|
|
|
|
2022-07-04 23:07:04 +00:00
|
|
|
declare module '@emoji-mart/data/sets/14/twitter.json' {
|
2022-07-05 02:08:47 +00:00
|
|
|
export interface NativeEmoji {
|
2023-02-25 22:30:24 +00:00
|
|
|
unified: string
|
|
|
|
native: string
|
|
|
|
x: number
|
|
|
|
y: number
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
2022-07-05 02:08:47 +00:00
|
|
|
export interface CustomEmoji {
|
|
|
|
src: string
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
2022-07-05 02:08:47 +00:00
|
|
|
export interface Emoji<T> {
|
2023-02-25 22:30:24 +00:00
|
|
|
id: string
|
|
|
|
name: string
|
|
|
|
keywords: string[]
|
|
|
|
skins: T[]
|
|
|
|
version?: number
|
2022-07-05 02:08:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EmojiCategory {
|
2023-02-25 22:30:24 +00:00
|
|
|
id: string
|
|
|
|
emojis: string[]
|
2022-07-03 08:12:57 +00:00
|
|
|
}
|
|
|
|
|
2022-07-04 23:07:04 +00:00
|
|
|
export interface EmojiMap {
|
2023-02-25 22:30:24 +00:00
|
|
|
[s: string]: Emoji<NativeEmoji>
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EmojiAlias {
|
2023-02-25 22:30:24 +00:00
|
|
|
[s: string]: string
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EmojiSheet {
|
2023-02-25 22:30:24 +00:00
|
|
|
cols: number
|
|
|
|
rows: number
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface EmojiData {
|
2023-02-25 22:30:24 +00:00
|
|
|
categories: EmojiCategory[]
|
|
|
|
emojis: EmojiMap
|
|
|
|
aliases: EmojiAlias
|
|
|
|
sheet: EmojiSheet
|
2022-07-04 23:07:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
const data: EmojiData;
|
|
|
|
|
|
|
|
export default data;
|
|
|
|
|
2022-07-03 08:12:57 +00:00
|
|
|
}
|