import { FastifyReply, FastifyRequest } from 'fastify'; import { SourceService } from '../services/source.service.js'; import { OMSSConfig } from '../core/types/index.js'; import { TMDBService } from '../services/tmdb.service.js'; interface StreamParams { type: string; id: string; } export declare class StremioController { private readonly sourceService; private readonly config; private readonly tmdbService; constructor(sourceService: SourceService, config: OMSSConfig, tmdbService: TMDBService); /** * GET /stremio/manifest.json */ getManifest(_req: FastifyRequest, reply: FastifyReply): Promise; /** * Resolve an incoming Stremio ID to a TMDB ID string. * * Stremio uses: * - "tt1234567" → IMDb movie * - "tt1234567:1:2" → IMDb series S01E02 * - "tmdb:603" → TMDB movie * - "tmdb:1399:1:1" → TMDB series S01E01 * * Returns null when the ID cannot be resolved. */ private resolveTmdbId; /** * GET /stremio/stream/:type/:id.json * * Supported ID formats: * Movies: tt1234567 | tmdb:603 * Series: tt1234567:1:2 | tmdb:1399:1:1 */ getStream(request: FastifyRequest<{ Params: StreamParams; }>, reply: FastifyReply): Promise; } export {}; //# sourceMappingURL=stremio.controller.d.ts.map