import type { ToolContext } from "@opencode-ai/plugin";
import type { AgentModelAttempt, RunStore } from "../../features/run-state/index.js";
import { type DelegationRuntime } from "./delegation.js";
export type TeamCreateArgs = {
    run_id?: string;
    inline_spec?: unknown;
};
export type TeamMemberAddArgs = {
    run_id?: string;
    member: unknown;
};
export type TeamCreateMemberLaunch = {
    role_id: string;
    role_label: string;
    capability_profile: string;
    resolved_agent: string;
    status: "queued" | "failed";
    child_session_id?: string;
    background_id?: string;
    agent_call_id?: string;
    prompt_ref?: string;
    launch_id?: string;
    stable_context_ref?: string;
    stable_context_hash?: string;
    opencode_agent?: string;
    write_surface?: string;
    lease_requirements?: string[];
    pending_message_ids: string[];
    model_attempts: AgentModelAttempt[];
    error?: string;
};
export declare function executeTeamCreate(store: RunStore, args: TeamCreateArgs, context: ToolContext, runtime: DelegationRuntime): Promise<{
    title: string;
    output: string;
    metadata: Record<string, unknown>;
}>;
export declare function executeTeamMemberAdd(store: RunStore, args: TeamMemberAddArgs, context: ToolContext, runtime: DelegationRuntime): Promise<{
    title: string;
    output: string;
    metadata: Record<string, unknown>;
}>;
