import { type FabricSubagentConfig } from "../config.js"; import { type ClaudeModelInfo } from "./claude-cli.js"; import type { FabricSteeringMode, FabricSubagentLog, SubagentHandleInfo, SubagentRunRecord, SubagentRunRequest, SubagentRunResult, SubagentSteerResult } from "./types.js"; export declare const effectiveSubagentTimeoutMs: (configuredTimeoutMs: number, requestedTimeoutMs?: number) => number; export declare class SubagentManager { #private; readonly cwd: string; readonly config: FabricSubagentConfig; constructor(cwd: string, config: FabricSubagentConfig, options?: { workerPath?: string; fabricExtensionPath?: string; piBinary?: string; claudeBinary?: string; runRoot?: string; fullCodeMode?: boolean; mainAgentId?: string; onBackgroundComplete?: (result: SubagentRunResult) => void; preparePiModel?: (model: string) => Promise; }); subscribeUi(listener: () => void): () => void; spawn(request: SubagentRunRequest, signal?: AbortSignal): Promise; run(request: SubagentRunRequest, signal?: AbortSignal): Promise; wait(id: string): Promise; detachSignal(id: string): void; status(id: string): SubagentRunRecord | SubagentHandleInfo; list(): Array; listForUi(): Array; runDirectory(id: string): string | undefined; claudeModels(refresh?: boolean): Promise; stop(id: string): Promise; cleanup(id: string, deleteBranch?: boolean): Promise<{ cleaned: boolean; }>; readLog(id: string, opts?: { lines?: number; before?: number; }): FabricSubagentLog; steer(id: string, message: string, data?: unknown): SubagentSteerResult; followUp(id: string, message: string, data?: unknown): SubagentSteerResult; setSteeringMode(id: string, mode: FabricSteeringMode): SubagentSteerResult; setFollowUpMode(id: string, mode: FabricSteeringMode): SubagentSteerResult; compact(id: string, instructions?: string): SubagentSteerResult; close(): Promise; } //# sourceMappingURL=manager.d.ts.map