/**
 * Stream injector — WebRTC code injected into the browser page.
 *
 * When browser_stream_start is called, this code is injected via
 * page.addInitScript() and page.evaluate(). It captures the page
 * visually and streams it via WebRTC through the signaling server.
 *
 * Approach: canvas.captureStream() at 15 FPS.
 * The canvas mirrors the visible viewport content.
 */
import type { Page } from "playwright";
export interface StreamInjectConfig {
    signalingUrl: string;
    sessionId: string;
    iceServers: Array<{
        urls: string | string[];
        username?: string;
        credential?: string;
    }>;
}
/**
 * Inject WebRTC streaming code into a Playwright page.
 * Uses addInitScript so it's present on every navigation.
 */
export declare function injectStreamingCode(page: Page, config: StreamInjectConfig): Promise<void>;
/**
 * Stop the WebRTC stream and clean up injected code.
 */
export declare function stopStreaming(page: Page): Promise<void>;
//# sourceMappingURL=stream-injector.d.ts.map