import type { ServerWebSocket } from 'bun'; import type { ServeOptions } from '../index.ts'; import type { WebSocketData } from '../json-rpc-websocket-runtime.ts'; import type { ServerContext } from './context.ts'; export { withRetry } from './retry.ts'; export declare function handleWorkerWebSocketMessage(context: ServerContext, options: ServeOptions, ws: ServerWebSocket, rawMessage: string | Buffer, cleanupWorkflowIndex: (operationId: string) => void): void;