import type { AgencyConfig } from "../config.js"; import type { LLMMock, ScopedLLMMocks } from "../runtime/deterministicClient.js"; import { executeNodeAsync } from "./util.js"; export type AgencyAgentLimits = { wallClockMs?: number; memoryBytes?: number; stdoutBytes?: number; ipcPayloadBytes?: number; }; export type RunAgencyAgentArgs = { agent: string; node: string; args: Record; config: AgencyConfig; cwd?: string; scratchDir?: string; statelogPath?: string; limits?: AgencyAgentLimits; llmMocks?: LLMMock[] | ScopedLLMMocks; useTestLLMProvider?: boolean; argv?: string[]; }; export type RunAgencyAgentResult = { data: unknown; stdout: string; stderr: string; statelogPath?: string; }; export type RunAgencyAgentDeps = { executeNodeAsync?: typeof executeNodeAsync; }; export declare function runAgencyAgent(args: RunAgencyAgentArgs, deps?: RunAgencyAgentDeps): Promise; export declare function resolveAgencyAgentPath(agent: string, cwd?: string): string;