import type { CodeModeDeterminismState, NormalizedCodeModeOptions, SerializableError } from "../types.js"; export interface WorkerRunMessage { type: "run"; invocationId: string; js: string; determinism: CodeModeDeterminismState; options: Pick; } export interface WorkerToolRequest { type: "tool-request"; invocationId: string; requestId: string; toolName: string; inputJson: string; } export interface WorkerFetchRequest { type: "fetch-request"; invocationId: string; requestId: string; request: { url: string; method?: string; headers?: Record; body?: string; }; } export interface WorkerBridgeResponse { type: "bridge-response"; invocationId: string; requestId: string; success: boolean; dateNowMs: number; valueJson?: string; error?: SerializableError; } export interface WorkerResultMessage { type: "result"; invocationId: string; success: boolean; valueJson?: string; error?: SerializableError; } export interface WorkerReadyMessage { type: "ready"; invocationId: string; } export type WorkerToMainMessage = WorkerToolRequest | WorkerFetchRequest | WorkerResultMessage | WorkerReadyMessage; export type MainToWorkerMessage = WorkerRunMessage | WorkerBridgeResponse; //# sourceMappingURL=protocol.d.ts.map