import type { Task } from "../common/types.js"; import { NodeFsDuplex } from "../fs-duplex/node.js"; import Debug from "debug"; export declare const debug: Debug.Debugger; /** * The options for creating a task channel with a browser tab. */ export interface RunTaskOptions { dir: string; initialTask: T; } /** * Establishes a communication channel for a task with an active browser tab * using the new fs-duplex protocol (dual-file, heartbeat). */ declare function runTaskInBrowser(options: RunTaskOptions): Promise>; export type TaskRunner = typeof runTaskInBrowser; export declare const evaler: { runCodeInBrowser: (dir: string, code: string) => Promise; runFetchInBrowser: (dir: string, url: string, init?: RequestInit) => Promise<{ readonly headers: Headers; readonly ok: boolean; readonly status: number; readonly statusText: string; #duplex: NodeFsDuplex; #bodyUsed: boolean; #taskId: string; #readFullBody(format: "json" | "text"): Promise; get body(): ReadableStream | null; json(): Promise; text(): Promise; arrayBuffer(): Promise; }>; }; export {}; //# sourceMappingURL=utils.d.ts.map