/** True while an opencode-sdk turn is running for the given workspace root. */ export declare function isOpencodeSdkBusy(root: string): boolean; /** Current tool activity label for the given root (undefined = idle). */ export declare function getOpencodeSdkActivity(root: string): string | undefined; export declare function getOpencodeSdkLatestSessionId(root: string): string | undefined; /** * Steer the live OpenCode SDK session MID-TURN. Unlike opencode-cli / grok / * copilot-cli (one-shot subprocesses), the SDK keeps a persistent in-process * server + session, so a new prompt sent to the live session while it's busy is * picked up by the running turn (opencode interrupts and continues with the added * message, keeping the conversation context). Returns true only when there's a * live/busy session to inject into; false otherwise so the caller falls back to * the durable TODO queue (at-least-once delivery preserved). */ export declare function steerOpencodeSdk(root: string, text: string, log: (msg: string) => void): Promise; export declare function sendOpencodeSdkPrompt(root: string, /** Absolute path to the combined agent-profile + message file. */ promptFilePath: string, resumeSessionId: string | undefined, stdoutFile: string, exitFile: string, log: (msg: string) => void, /** Optional model string "providerID/modelID" */ model?: string, /** Optional callback invoked once to reveal the output panel to the user. */ showOutput?: () => void): void; export declare function runOpencodeSdkCompact(root: string, log: (msg: string) => void): Promise; export declare function closeOpencodeSdkClient(root: string, log: (msg: string) => void): void; /** * Force-clear the busy flag for a root — used by the task loop when it detects * via hooks-events.jsonl that the server was disposed while the SDK async was * still running (i.e. the for-await loop never received the disposed event). */ export declare function forceIdleOpencodeSdk(root: string): void; /** Close all open SDK servers — called on extension deactivate to avoid orphaned processes. */ export declare function closeAllOpencodeSdkClients(): void;