import { type RunStore } from "../run-state/index.js";
import type { SeedTeamSpec } from "./spec.js";
import type { SeedTeamMember, SeedTeamMemberStatus, SeedTeamRuntime } from "./types.js";
export declare function teamRoot(store: RunStore, runId: string): string;
export declare function teamRuntimePath(store: RunStore, runId: string): string;
export declare function teamInboxRoot(store: RunStore, runId: string): string;
export declare function teamTasksPath(store: RunStore, runId: string): string;
export declare function teamCleanupPath(store: RunStore, runId: string): string;
export declare function ensureTeamRuntime(store: RunStore, runId: string): Promise<SeedTeamRuntime>;
export declare function createDynamicTeamRuntime(store: RunStore, runId: string, input: {
    spec: SeedTeamSpec;
    parentSessionId: string;
    specRef: string;
    specMarkdownRef: string;
}): Promise<SeedTeamRuntime>;
export declare function isReplaceableDefaultTeamRuntime(runtime: SeedTeamRuntime): boolean;
export declare function loadTeamRuntime(store: RunStore, runId: string): Promise<SeedTeamRuntime | undefined>;
export declare function resumeTeamRuntime(store: RunStore, runId: string): Promise<SeedTeamRuntime>;
export declare function stopTeamRuntime(store: RunStore, runId: string): Promise<SeedTeamRuntime>;
export declare function updateTeamMemberStatus(store: RunStore, runId: string, memberName: string, status: SeedTeamMemberStatus): Promise<SeedTeamRuntime>;
export declare function recordTeamMemberLaunch(store: RunStore, runId: string, memberName: string, patch: Partial<Pick<SeedTeamMember, "status" | "session_id" | "background_id" | "agent_call_id" | "prompt_ref" | "resolved_agent" | "opencode_agent" | "write_surface" | "launch_status" | "launch_error">>): Promise<SeedTeamRuntime>;
export declare function addTeamMemberToRuntime(store: RunStore, runId: string, member: SeedTeamMember): Promise<SeedTeamRuntime>;
export declare function finishDynamicTeamLaunch(store: RunStore, runId: string, input: {
    status: "active" | "failed";
    launchError?: string;
    cleanupInstructions?: string[];
}): Promise<SeedTeamRuntime>;
export declare function assertTeamMember(store: RunStore, runId: string, memberName: string): Promise<SeedTeamMember>;
