UNPKG

@simply-stream/react-components

Version:

A set of common components that rely on simply-stream systems or are used by them

20 lines 749 B
import { ApiClient, HelixClip, HelixUser } from '@twurple/api'; export interface IClipFilter { filter(clips: HelixClip[]): HelixClip[]; } export type ClipRandomizerAuthentication = { clientId: string; accessToken: string; } | { clientId: string; clientSecret: string; }; export default class ClipRandomizer { protected filters?: IClipFilter[] | undefined; twitchApi: ApiClient; constructor(authentication: ClipRandomizerAuthentication, filters?: IClipFilter[] | undefined); protected getClips: (streamer: HelixUser) => Promise<HelixClip[]>; getRandomClip: (streamer: HelixUser) => Promise<HelixClip>; getUsers: (streamers: string[]) => Promise<HelixUser[]>; } //# sourceMappingURL=clip-randomizer.d.ts.map