import type { IStreamFactory } from '@nomercy-entertainment/nomercy-player-core'; import type { PostJson } from './gql.js'; /** Looks up the address of the playable file for a clip slug. */ export type ClipFileResolver = (slug: string) => Promise; /** A clip's playable file and what Twitch says about it. */ export interface ResolvedClip { url: string; title: string; duration: number; } /** Asks Twitch for a clip's highest-quality file. */ export declare function lookUpClip(post: PostJson, slug: string, clientId?: string): Promise; /** Builds the stream factory that claims Twitch clip links. */ export declare function clipStreamFactory(resolveFile: ClipFileResolver): IStreamFactory;