export declare function yieldToScheduler(): Promise<void>;
/** Max frames allowed in the VideoEncoder queue before back-pressure kicks in. */
export declare const ENCODER_QUEUE_LIMIT = 20;
/**
 * Wait until the encoder queue drains below the limit.
 * Prevents OOM from too many queued VideoFrames.
 */
export declare function waitEncoderQueue(getQueueSize: () => number): Promise<void>;
