import type { WebOp } from '../../services/web/web-protocol.js'; import { type ProgramIO } from '../cli-helpers.js'; /** * Resolve the session, ensure a daemon, invoke one op, and emit exactly one * envelope. `WRAPPED_OPS` is applied here, after the byte caps the daemon * already imposed, so the UNTRUSTED markers are never themselves truncated. * * The `PEAKS_WEB_DISABLED` gate is the FIRST thing that happens (tech-doc ยง5.1 * step 1, AC5). Before the session lookup, so a project with no binding still * gets `WEB_DISABLED` rather than `NO_SESSION`; before `ensureDaemon`, so * nothing is spawned and no lock is taken; and therefore before anything that * could touch the browser cache. */ export declare function runWebOp(io: ProgramIO, op: WebOp, args: Record, asJson: boolean): Promise;