import { type RuntimeEvent, type RuntimeSessionState } from "@pi-claude-code-agent/runtime"; import type { RunResult, StartRunInput, SubagentBackend, SubagentRunRecord, RuntimeSubagentBackendOptions } from "./types.js"; export declare class ClaudeCodeSubagentBackend implements SubagentBackend { readonly runner: "claude-code-agent"; private readonly runtime; private readonly storageDir; private readonly pollIntervalMs; private readonly completionTimeoutMs; private readonly needsAttentionAfterMs?; private readonly attentionPollIntervalMs; private readonly sessionToRunId; private readonly attentionRaised; private readonly ready; private attentionTimer?; constructor(options?: RuntimeSubagentBackendOptions); startRun(input: StartRunInput): Promise; statusRun(runId: string): Promise; listRuns(): Promise; eventsRun(runId: string, cursor?: number): Promise; interruptRun(runId: string): Promise; stopRun(runId: string): Promise; collectResult(runId: string): Promise; private waitForCompletion; private waitForTerminalState; private syncRun; private persistResult; private rehydrateRuns; private scanAttention; private requireRun; } declare function buildTaskPrompt(agentPrompt: string | undefined, task: string): string; declare function mapRunState(state: RuntimeSessionState | string): SubagentRunRecord["state"]; declare function extractSummary(events: RuntimeEvent[]): string; export { buildTaskPrompt, extractSummary, mapRunState };