/** * daemon/screenshot.ts — Screenshot capture for the AIBroker hub. * * Captures the iTerm2 window containing the active session and sends * it back through the CommandContext reply channel. Handles screen-lock * detection with text fallback. * * Extracted from Whazaa's screenshot.ts — now transport-agnostic. */ import type { CommandContext } from "./command-context.js"; /** * Headless screenshot capture — no CommandContext, no reply channel. * * For a caller (the daemon manager alerting the operator about a stuck * session) that has a bare iTerm2 sessionId and wants PNG bytes back * directly, with no session-lookup fallbacks and no text-mode fallback: * either this session's window is found and captured, or null comes back * and the caller decides what to do (e.g. fall back to a text alert). */ export declare function captureSessionPng(sessionId: string): Promise<{ buffer: Buffer; mime: string; } | null>; export declare function handleScreenshot(ctx: CommandContext): Promise; //# sourceMappingURL=screenshot.d.ts.map