import type { UserIdResolvable } from 'twitch-common'; import { BaseApi } from '../../BaseApi'; import { Stream, StreamType } from './Stream'; /** * The API methods that deal with streams. * * Can be accessed using `client.kraken.streams` on an {@ApiClient} instance. * * ## Example * ```ts * const api = new ApiClient(new StaticAuthProvider(clientId, accessToken)); * const stream = await api.kraken.streams.getStreamByChannel('125328655'); * ``` */ export declare class StreamApi extends BaseApi { /** * Retrieves the current stream on the given channel. * * @param channel */ getStreamByChannel(channel: UserIdResolvable): Promise; /** * Retrieves a list of streams. * * @param channels A channel ID or a list thereof. * @param game Show only streams playing a certain game. * @param languageCode Show only streams in a certain language. * @param type Show only streams of a certain type. * @param page The result page you want to retrieve. * @param limit The number of results you want to retrieve. */ getStreams(channels?: string | string[], game?: string, languageCode?: string, type?: StreamType, page?: number, limit?: number): Promise; /** * Retrieves a list of all streams. * * @param page The result page you want to retrieve. * @param limit The number of results you want to retrieve. */ getAllStreams(page?: number, limit?: number): Promise; /** * Retrieves a list of all live streams. * * @param page The result page you want to retrieve. * @param limit The number of results you want to retrieve. */ getAllLiveStreams(page?: number, limit?: number): Promise; /** * Retrieves a list of all streams on channels the currently authenticated user is following. * * @param type Show only streams of a certain type. * @param page The result page you want to retrieve. * @param limit The number of results you want to retrieve. */ getFollowedStreams(type?: StreamType, page?: number, limit?: number): Promise; }