import type { AgentResponse, CustomAgentConfig } from '../core/models/index.js'; import type { RunAgentOptions } from './types.js'; export type { RunAgentOptions, StreamCallback } from './types.js'; export declare class AgentRunner { private static resolvePersonaProviders; private static resolveProviderAndModel; /** Use pre-resolved handoff options when supplied; otherwise resolve config and persona precedence. */ private static resolveProviderOptions; private static assertResolvedExecutionIsNotMixed; private static resolveExecution; private static buildCallOptions; private static buildMcpPrepareContext; /** The runner owns PreparedProviderMcp disposal; provider clients only consume it. */ private static disposePreparedMcp; private static resolvePermissionMode; runCustom(agentConfig: CustomAgentConfig, task: string, options: RunAgentOptions): Promise; run(personaSpec: string | undefined, task: string, options: RunAgentOptions): Promise; /** * Prepare the provider MCP adapter when the resolved MCP server set is * non-empty, or when runtime MCP mode is active with an empty set for * Claudeç³» providers so `strictMcpConfig`/`--strict-mcp-config` suppresses * ambient MCP config (order.md:152,160,166,172). Runs `validate` * (fail-fast on unsupported transports) then `prepare` (materialize * provider-specific config / temp files). Returns `undefined` when MCP is * disabled (legacy mode empty server set) so the runner skips adapter work * and cleanup (order.md:152,153). */ private static prepareMcpAdapter; } export declare function runAgent(personaSpec: string | undefined, task: string, options: RunAgentOptions): Promise; //# sourceMappingURL=runner.d.ts.map