/** * Optional SSE wrapper around honesty ops (same events as updates/software). */ import type { IncomingMessage, ServerResponse } from 'node:http'; export type SseOpsLog = { stream: 'stdout' | 'stderr' | 'status'; line: string; }; export declare function wantsSse(req: IncomingMessage, url: URL, body: Record): boolean; export declare function sendMaybeStreamedOps(input: { req: IncomingMessage; res: ServerResponse; url: URL; body: Record; run: (hooks: { onLog?: (ev: SseOpsLog) => void; signal?: AbortSignal; }) => Promise; }): Promise; //# sourceMappingURL=sse-ops.d.ts.map