import type { RuntimeAgentConfig, RuntimeAgentProcess, RuntimeSpawnDescriptor, RuntimeSpawnMethod } from '../../types/index.js';
/**
 * Build a spawn descriptor for an agent based on spawn method.
 * Language-agnostic: command is fully configurable per agent.
 */
export declare function buildSpawnDescriptor(agent: RuntimeAgentConfig, context: string, spawnMethod: RuntimeSpawnMethod, timeoutMs: number): RuntimeSpawnDescriptor;
/**
 * Create an initial AgentProcess record in pending state.
 */
export declare function createAgentProcess(agentId: string): RuntimeAgentProcess;
/**
 * Spawn an agent as a child process (real execution).
 * Returns a new RuntimeAgentProcess with the result.
 * In tests, this function should be mocked.
 */
export declare function spawnAgent(descriptor: RuntimeSpawnDescriptor, initial: RuntimeAgentProcess, onProgress?: (agentId: string, status: string) => void): Promise<RuntimeAgentProcess>;
/**
 * Parse token usage from agent stdout.
 * Looks for patterns like "Tokens used: 1234" or JSON with token counts.
 */
export declare function parseTokenUsage(stdout: string): number;
//# sourceMappingURL=agent-spawner.d.ts.map