import type { Response } from "express"; import { type HostedOpenCode } from "../core/opencode-host.js"; /** Scope before sending any bytes to the browser, including conflicting nested IDs. */ export declare function scopedOpenCodeEvent(value: unknown, id: string, scope?: { cwd: string; isCurrent: () => boolean; }): Record | null; /** Read one connection lazily, yielding scoped events with consumer backpressure. */ export declare function readOpenCodeEvents(hosted: HostedOpenCode, id: string, signal: AbortSignal, onOpen?: () => void): AsyncGenerator, void, unknown>; /** Browser transport owns response framing and its one status catch-up read. */ export declare function streamOpenCodeEvents(hosted: HostedOpenCode, id: string, res: Response, signal: AbortSignal): Promise; //# sourceMappingURL=opencode-events.d.ts.map