import type { APIClient } from '@wireapp/api-client' ; import type { GiphySearchOptions , GiphyMultipleResult , GiphyResult , GIPHY_RATING } from '@wireapp/api-client/src/giphy/' ; export class GiphyService { constructor ( private readonly apiClient ) { } public getRandomGif ( tag ? , rating ? ) { return this . apiClient . giphy . api . getGiphyRandom ( { rating , tag } ) ; } public getTrendingGif ( rating ? ) { return this . apiClient . giphy . api . getGiphyTrending ( { rating } ) ; } public searchGif ( options ) { return this . apiClient . giphy . api . getGiphySearch ( options ) ; } }