/**
 * 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 OpenCodeCallOptions } from './types.js';
export type { OpenCodeCallOptions } from './types.js';
export declare function resetSharedServer(): void;
/**
 * Client for OpenCode SDK agent interactions.
 *
 * Handles session management, streaming event conversion,
 * permission auto-reply, and response processing.
 */
export declare class OpenCodeClient {
    private isRetriableError;
    private waitForRetryDelay;
    /** Build a prompt suffix that instructs the agent to return JSON matching the schema */
    private buildStructuredOutputSuffix;
    private buildRateLimitedResponse;
    /** Call OpenCode with an agent prompt */
    call(agentType: string, prompt: string, options: OpenCodeCallOptions): Promise<AgentResponse>;
    /** Call OpenCode with a custom agent configuration (system prompt + prompt) */
    callCustom(agentName: string, prompt: string, systemPrompt: string, options: OpenCodeCallOptions): Promise<AgentResponse>;
}
export declare function callOpenCode(agentType: string, prompt: string, options: OpenCodeCallOptions): Promise<AgentResponse>;
export declare function callOpenCodeCustom(agentName: string, prompt: string, systemPrompt: string, options: OpenCodeCallOptions): Promise<AgentResponse>;
//# sourceMappingURL=client.d.ts.map