import type { ChatMessage, CompleteOptions, ConnectorClient, ConnectorResult } from "./types.js"; interface AgentCliSpawnInput { binary: string; model: string; systemPrompt: string; userPrompt: string; timeoutMs: number; } export type AgentCliSpawnFn = (input: AgentCliSpawnInput) => Promise<{ text: string; usdSpent: number; }>; export interface AgentCliAdapterOptions { model: string; binary?: string; spawnFn?: AgentCliSpawnFn; } /** * Check whether a given CLI binary is available on PATH. * Uses spawnSync with `--version` — cheap, no side effects. */ export declare function isAgentCliAvailable(binary?: string): boolean; export declare class AgentCliAdapter implements ConnectorClient { private readonly model; private readonly binary; private readonly spawnFn; private readonly timeoutMs; constructor(opts: AgentCliAdapterOptions); complete(messages: ChatMessage[], _opts?: CompleteOptions): Promise; } export {};