/** * OpenCode SDK integration for agent interactions * * Uses @opencode-ai/sdk/v2 for native TypeScript integration. * Follows the same patterns as the Codex client. */ import type { AgentResponse } from '../../core/models/index.js'; import { type OpenCodeCompactSessionOptions, type OpenCodeCallOptions } from './types.js'; import { type OpencodeClient } from './server-pool.js'; export type { OpenCodeCallOptions } from './types.js'; type OpenCodeSessionSnapshot = NonNullable>['data']>; export declare function getOpenCodeSessionSnapshot(model: string, sessionID: string, directory: string, apiKey?: string): Promise; export type OpenCodeSessionMessages = NonNullable>['data']>; export declare function getOpenCodeSessionMessages(model: string, sessionID: string, directory: string, apiKey?: string): Promise; export declare function resetSharedServer(): void; export declare class OpenCodeAttemptRunner { private isRetriableError; private waitForRetryDelay; private buildRateLimitedResponse; /** Call OpenCode with an agent prompt */ call(agentType: string, prompt: string, options: OpenCodeCallOptions): Promise; private runAttempt; compactSession(options: OpenCodeCompactSessionOptions): Promise; /** Call OpenCode with a custom agent configuration (system prompt + prompt) */ callCustom(agentName: string, prompt: string, systemPrompt: string, options: OpenCodeCallOptions): Promise; } //# sourceMappingURL=attempt-runner.d.ts.map