import type { Request, Response } from "express"; /** * Handles MPEG-TS stream requests. Validates the channel, flushes HTTP headers early for new streams, then ensures a capture is running, waits for the init segment, * spawns a per-client FFmpeg remuxer, and streams the output. * * For new streams, headers are flushed before stream setup begins so the client sees an immediate 200 response. This prevents timeout failures during the 4-10+ * second startup sequence. The trade-off is that error responses cannot be sent after the flush — failures are logged server-side and the connection is closed. * * Route: GET /stream/:name * * @param req - Express request object. * @param res - Express response object. */ export declare function handleMpegTsStream(req: Request, res: Response): Promise;