/** * ChimpHands GitHub Actions bridge: bootstrap → OpenCode → inbound SSE turns. * Relies on TESTCHIMP_API_KEY (+ optional TESTCHIMP_BACKEND_URL; defaults to prod). * Does not write mcp.json — TestChimp MCP is wired via opencode.json for OpenCode. */ export type ReportWorkingBranchOptions = { sessionId: string; branch: string; pullRequestUrl?: string; }; /** Agent/CLI hook: persist the conversation working branch (+ optional PR) for UI + later turns. */ export declare function reportWorkingBranch(opts: ReportWorkingBranchOptions): Promise; type RunOptions = { sessionId: string; prompt?: string; /** When set, `opencode run --attach` to a local OpenCode server. */ attachUrl?: string; /** Registered runtime id (from register_runtime); enables heartbeat + tunnel + complete_runtime. */ runtimeId?: string; }; export declare function runChimphands(opts: RunOptions): Promise; /** OpenCode workspace-scoped APIs require directory routing (header + query). */ export declare function appendOpencodeDirectoryRouting(path: string, query: string | undefined, headers: Record, directory: string): string; /** Runtime-aware entry: register + attach to local OpenCode server (Phase 1+). */ export declare function serveChimphands(opts: RunOptions & { attachUrl: string; }): Promise; export {};