/**
 * OpenCode Headless Provider
 *
 * Implements the HeadlessProvider interface using the OpenCode SDK.
 * Manages a shared server, creates sessions, and maps SSE events
 * to the AgentMessage stream.
 *
 * @module
 */
import type { HeadlessProvider, HeadlessSession, HeadlessSpawnOptions } from '../types.js';
export interface OpenCodeHeadlessConfig {
    port?: number;
}
/**
 * OpenCode headless provider using @opencode-ai/sdk.
 * Manages a shared server and creates sessions on demand.
 */
export declare class OpenCodeHeadlessProvider implements HeadlessProvider {
    readonly name = "opencode-headless";
    private config?;
    constructor(config?: OpenCodeHeadlessConfig);
    spawn(options: HeadlessSpawnOptions): Promise<HeadlessSession>;
    isAvailable(): Promise<boolean>;
}
//# sourceMappingURL=headless.d.ts.map