/**
 * delegate_task Tool
 *
 * Delegate work to an agent (sync or background mode)
 * Supports resuming existing sessions for context preservation
 *
 * Safety features:
 * - Maximum poll count to prevent infinite loops
 * - Timeout guarantee with graceful degradation
 * - Resource cleanup on all exit paths
 */
import { ParallelAgentManager } from "../../core/agents/index.js";
export declare const createDelegateTaskTool: (manager: ParallelAgentManager, client: unknown) => {
    description: string;
    args: {
        agent: import("zod").ZodString;
        description: import("zod").ZodString;
        prompt: import("zod").ZodString;
        background: import("zod").ZodBoolean;
        resume: import("zod").ZodOptional<import("zod").ZodString>;
        mode: import("zod").ZodOptional<import("zod").ZodEnum<{
            normal: "normal";
            race: "race";
            fractal: "fractal";
        }>>;
        groupID: import("zod").ZodOptional<import("zod").ZodString>;
    };
    execute(args: {
        agent: string;
        description: string;
        prompt: string;
        background: boolean;
        resume?: string | undefined;
        mode?: "normal" | "race" | "fractal" | undefined;
        groupID?: string | undefined;
    }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
};
