import { TransformStream } from "node:stream/web"; import type { CustomizedResponse, Response } from "../types.js"; export declare class FilterTransformStream extends TransformStream { constructor(filter: (chunk: T) => chunk is P); } export declare class InspectStream extends TransformStream { constructor(callback: (message: T) => void); } /** * Monitors the stream for `SessionList` updates and terminates it when the * watched session disappears from the list. This allows CDP stream consumers * (e.g. `get-console --watch`) to exit cleanly when a page is closed, even * though the underlying transport connection remains open (shared with other * sessions on the same device:port). */ export declare class SessionGuardTransformStream extends TransformStream { constructor(sessionId: number); }