gif-picker-react
Version:
Multi-provider GIF Picker for React with pluggable provider support
56 lines (55 loc) • 1.35 kB
text/typescript
import { n as GifProvider } from "../../GifProvider-CmpIJXla.cjs";
//#region src/providers/klipy/klipy.types.d.ts
declare enum ContentFilter {
HIGH = "high",
MEDIUM = "medium",
LOW = "low",
OFF = "off"
}
declare enum KlipyItemType {
GIF = "gif",
AD = "ad"
}
declare enum KlipyQuality {
HD = "hd",
MD = "md",
SM = "sm",
XS = "xs"
}
interface KlipyMediaFormat {
url: string;
width: number;
height: number;
size: number;
}
interface KlipyFileVariant {
gif?: KlipyMediaFormat;
webp?: KlipyMediaFormat;
jpg?: KlipyMediaFormat;
mp4?: KlipyMediaFormat;
webm?: KlipyMediaFormat;
}
interface KlipyItem {
id: number;
slug: string;
title: string;
file: Record<KlipyQuality, KlipyFileVariant>;
tags: string[];
type: KlipyItemType;
blur_preview?: string;
}
//#endregion
//#region src/providers/klipy/KlipyProvider.d.ts
type KlipyProviderConfig = {
baseUrl?: string;
customerId?: string;
locale?: string;
contentFilter?: ContentFilter;
quality?: KlipyQuality;
previewQuality?: KlipyQuality;
showBranding?: boolean;
};
declare function Klipy(appKey: string, config?: KlipyProviderConfig): GifProvider;
//#endregion
export { ContentFilter, Klipy, type KlipyFileVariant, type KlipyItem, KlipyItemType, type KlipyMediaFormat, type KlipyProviderConfig, KlipyQuality };
//# sourceMappingURL=index.d.cts.map