import * as fs from "node:fs"; export type AgentName = "hermes" | "claude" | "codex"; export interface DetectedAgent { name: AgentName; detail: string; } interface DetectionDeps { homedir?: () => string; existsSync?: typeof fs.existsSync; which?: (cmd: string) => string | null; platform?: NodeJS.Platform; env?: NodeJS.ProcessEnv; } export declare function detectHermes(deps?: DetectionDeps): Promise; export declare function detectClaude(deps?: DetectionDeps): Promise; export declare function detectCodex(deps?: DetectionDeps): Promise; export declare function detectAgents(deps?: DetectionDeps): Promise; export type AgentEvent = { kind: "tool"; tool: string; target?: string; } | { kind: "text"; text: string; } | { kind: "info"; message: string; }; export interface InvokeOptions { cwd: string; prompt: string; onChunk?: (text: string) => void; onEvent?: (event: AgentEvent) => void; } export declare function invokeAgent(agent: DetectedAgent, opts: InvokeOptions): Promise<{ ok: boolean; error?: string; }>; export declare function parseClaudeEvent(evt: unknown): AgentEvent | null; export {}; //# sourceMappingURL=detect-agents.d.ts.map