declare const apply: typeof import("ext:core/primordials").ReflectApply; declare const descriptor: typeof import("ext:core/primordials").ObjectGetOwnPropertyDescriptor; declare const getPrototype: typeof import("ext:core/primordials").ObjectGetPrototypeOf; declare const setPrototype: typeof import("ext:core/primordials").ObjectSetPrototypeOf; declare const define: typeof import("ext:core/primordials").ObjectDefineProperty; declare const get: typeof import("ext:core/primordials").WeakMapPrototypeGet; declare const set: typeof import("ext:core/primordials").WeakMapPrototypeSet; declare const mapGet: typeof import("ext:core/primordials").MapPrototypeGet; declare const mapSet: typeof import("ext:core/primordials").MapPrototypeSet; declare const mapDelete: typeof import("ext:core/primordials").MapPrototypeDelete; declare const mapForEach: typeof import("ext:core/primordials").MapPrototypeForEach; declare const mapClear: typeof import("ext:core/primordials").MapPrototypeClear; declare const then: typeof import("ext:core/promises").promiseThen; declare const safeNewPromise: typeof import("ext:core/promises").newPromise; declare const safePromiseResolve: typeof import("ext:core/promises").promiseResolve; declare const safePromiseReject: typeof import("ext:core/promises").promiseReject; declare const markPromiseHandled: typeof import("ext:core/promises").markPromiseHandled; declare const cloneValue: typeof import("ext:web/serialization.js").cloneValue; declare const registerMarkedTransferable: typeof import("ext:web/serialization.js").registerMarkedTransferable; declare const registerWire: typeof import("ext:web/serialization.js").registerWire; declare const dataCloneError: typeof import("ext:web/events.js").dataCloneError; declare const addListener: typeof import("ext:web/events.js").addListener; declare const MessagePort: typeof import("ext:web/messaging.js").MessagePort; declare const adoptPort: typeof import("ext:web/messaging.js").adoptPort; declare const messageData: typeof import("ext:web/messaging.js").messageData; declare const referencePort: typeof import("ext:web/messaging.js").referencePort; declare const setPortCloseHandler: typeof import("ext:web/messaging.js").setPortCloseHandler; declare const startPort: typeof import("ext:web/messaging.js").startPort; declare const op_port_pair: typeof import("ext:core/ops").op_port_pair; declare const op_port_move: typeof import("ext:core/ops").op_port_move; declare const op_port_close: typeof import("ext:core/ops").op_port_close; type ReadableResource = import("ext:webstreams/streams.js").ReadableStream; type WritableResource = import("ext:webstreams/streams.js").WritableStream; type TransformResource = import("ext:webstreams/streams.js").TransformStream; type Reader = import("ext:webstreams/streams.js").ReadableStreamDefaultReader; type Writer = import("ext:webstreams/streams.js").WritableStreamDefaultWriter; type ReadController = import("ext:webstreams/streams.js").ReadableStreamDefaultController; type WriteController = import("ext:webstreams/streams.js").WritableStreamDefaultController; type ReadResult = import("ext:webstreams/streams.js").ReadResult; type Port = import("ext:web/messaging.js").MessagePort; type StreamResource = ReadableResource | WritableResource | TransformResource; interface StreamRecord { source: object; kind?: "readable" | "writable" | "transform"; readable: ReadableResource | null; writable: WritableResource | null; reader?: Reader | null; writer?: Writer | null; readableClone?: ReadableResource; writableClone?: WritableResource; destination?: StreamResource; controller?: WriteController; writableState?: unknown; readPair?: [number, number]; writePair?: [number, number]; } type StreamPacket = [ kind: "readable" | "writable" | "transform", readId: number | null, writeId: number | null, writableClosed: boolean, ]; type RequestPacket = [id: number, command: "read" | "write" | "close" | "abort" | "cancel", value?: unknown]; type ReplyPacket = [id: number | null, ok: boolean, value: unknown];