UNPKG

gif-picker-react

Version:

Multi-provider GIF Picker for React with pluggable provider support

71 lines (70 loc) 1.74 kB
import { n as GifProvider } from "../../GifProvider-CmpIJXla.cjs"; //#region src/providers/giphy/giphy.types.d.ts declare enum ContentRating { G = "g", PG = "pg", PG_13 = "pg-13", R = "r" } interface GiphyMediaFormat { url: string; width: string; height: string; size?: string; mp4?: string; mp4_size?: string; webp?: string; webp_size?: string; frames?: string; hash?: string; } interface GiphyImages { original?: GiphyMediaFormat; fixed_width?: GiphyMediaFormat; fixed_height?: GiphyMediaFormat; downsized?: GiphyMediaFormat; preview_gif?: GiphyMediaFormat; [key: string]: GiphyMediaFormat | undefined; } interface GiphyAnalyticsEvent { url: string; } interface GiphyAnalytics { onload?: GiphyAnalyticsEvent; onclick?: GiphyAnalyticsEvent; onsent?: GiphyAnalyticsEvent; } interface GiphyGif { type: string; id: string; slug: string; url: string; bitly_url: string; bitly_gif_url: string; embed_url: string; content_url: string; title: string; rating: ContentRating; username: string; source: string; source_tld: string; source_post_url: string; is_sticker: number; import_datetime: string; trending_datetime: string; user?: any; images: GiphyImages; analytics?: GiphyAnalytics; analytics_response_payload?: string; } //#endregion //#region src/providers/giphy/GiphyProvider.d.ts type GiphyProviderConfig = { baseUrl?: string; lang?: string; rating?: ContentRating; }; declare function Giphy(apiKey: string, config?: GiphyProviderConfig): GifProvider; //#endregion export { ContentRating, Giphy, type GiphyAnalytics, type GiphyGif, type GiphyImages, type GiphyMediaFormat, type GiphyProviderConfig }; //# sourceMappingURL=index.d.cts.map