import { AgentRef } from './aiApi'; export interface PlanProviderInfo { name: string; isDefault: boolean; capabilities: { modes: Array<'plan' | 'review' | 'annotate' | 'archive'>; supportsStreaming: boolean; supportsVersionHistory: boolean; supportsAnnotations: boolean; supportsArchive: boolean; externallyHosted: boolean; prereqApiPrefix?: string; } | null; } export interface PlanSession { id: string; providerName: string; projectId: string; status: 'pending' | 'active' | 'approved' | 'denied' | 'abandoned' | 'ended'; mode: 'plan' | 'review' | 'annotate' | 'archive'; createdAt: string; updatedAt: string; endedAt?: string; uiUrl?: string; } export interface AgentDetectionResult { agent: 'claude' | 'opencode' | 'codex' | 'pi' | 'gemini'; name: string; cliInstalled: boolean; hookConfigured: boolean; configPath: string; instructions: string; } export interface PlannotatorStatus { installed: boolean; installedPath?: string; version?: string; runningSessions: Array<{ sessionId: string; pid: number; port: number; mode: string; startedAt: string; lastActivity: string; }>; } /** * Fetch the list of registered plan providers from the meta plugin. * Returns an empty array if the meta plugin isn't installed. */ export declare function listPlanProviders(agent: AgentRef): Promise; /** * Fetch the plannotator provider's runtime status (binary installed + * running session count). Used by AIPlanPanel to gate the wizard. */ export declare function getPlannotatorStatus(agent: AgentRef): Promise; /** * Install the plannotator binary via the provider's prereq route. */ export declare function installPlannotatorBinary(agent: AgentRef): Promise<{ ok: boolean; alreadyInstalled?: boolean; path?: string; error?: string; }>; /** * Detect installed AI agents in the sandbox + their plannotator-hook * configuration state. Drives the configure-hook wizard. */ export declare function listSupportedAgents(agent: AgentRef): Promise<{ agents: AgentDetectionResult[]; }>; /** * Configure the plannotator hook for a specific AI agent (claude / opencode * / codex / pi / gemini). */ export declare function configureAgentHook(agent: AgentRef, agentKind: AgentDetectionResult['agent']): Promise<{ ok: boolean; configPath?: string; error?: string; }>; export declare function unconfigureAgentHook(agent: AgentRef, agentKind: AgentDetectionResult['agent']): Promise<{ ok: boolean; error?: string; }>;