import type * as cf from "@cloudflare/workers-types"; import * as Effect from "effect/Effect"; import * as HttpServerResponse from "effect/unstable/http/HttpServerResponse"; import { DurableObjectState } from "./DurableObjectState.ts"; export type RawWebSocket = cf.WebSocket; export interface WebSocket { readonly ws: RawWebSocket; send(data: string | Uint8Array): Effect.Effect; close(code: number, reason: string): Effect.Effect; serializeAttachment(value: T): void; deserializeAttachment(): T | null; } export declare const fromWebSocket: (ws: RawWebSocket) => WebSocket; export declare const upgrade: () => Effect.Effect; //# sourceMappingURL=WebSocket.d.ts.map