import type { buildWorkspaceSkillSnapshot } from "../../agents/skills.js";
import type { ThinkLevel, VerboseLevel } from "../../auto-reply/thinking.js";
import type { loadConfig } from "../../config/config.js";
import type { SessionEntry } from "../../config/sessions.js";
import type { resolveMessageChannel } from "../../utils/message-channel.js";
import type { resolveAgentRunContext } from "./run-context.js";
import type { AgentCommandOpts } from "./types.js";
export declare function resolveFallbackRetryPrompt(params: {
    body: string;
    isFallbackRetry: boolean;
}): string;
export declare function runAgentAttempt(params: {
    providerOverride: string;
    modelOverride: string;
    cfg: ReturnType<typeof loadConfig>;
    sessionEntry: SessionEntry | undefined;
    sessionId: string;
    sessionKey: string | undefined;
    sessionAgentId: string;
    sessionFile: string;
    workspaceDir: string;
    body: string;
    isFallbackRetry: boolean;
    resolvedThinkLevel: ThinkLevel;
    timeoutMs: number;
    runId: string;
    opts: AgentCommandOpts;
    runContext: ReturnType<typeof resolveAgentRunContext>;
    spawnedBy: string | undefined;
    messageChannel: ReturnType<typeof resolveMessageChannel>;
    skillsSnapshot: ReturnType<typeof buildWorkspaceSkillSnapshot> | undefined;
    resolvedVerboseLevel: VerboseLevel | undefined;
    agentDir: string;
    onAgentEvent: (evt: {
        stream: string;
        data?: Record<string, unknown>;
    }) => void;
    primaryProvider: string;
}): Promise<import("../../agents/pi-embedded.js").EmbeddedPiRunResult>;
