/**
 * Repo Agent Runner — Executes Cloud Function agent code locally
 *
 * Downloads and caches each Cloud Function's source code, replaces its
 * `callClaude()` with a local shim that uses `claude --print`, then
 * calls the repo's actual handler function.
 *
 * This means:
 * - The repo's real system prompts, validation, and logic run
 * - Claude Code (Claude Max) provides the AI backbone
 * - No Anthropic API key needed anywhere
 * - No Cloud Function calls needed
 */
import type { AgentsInvokeResult } from '../commands/agents.js';
/** Shared cache root for all platform repos (agents + git repos). */
export declare const REPO_CACHE_ROOT: string;
export declare function isRepoAgentMode(): boolean;
export declare function hasRepoAgent(domain: string): boolean;
/**
 * Pre-install dependencies for all provisioned repo caches.
 * Call this proactively to avoid npm install delays during agent execution.
 * Repos that already have node_modules are skipped.
 */
export declare function warmRepoCache(): Promise<{
    warmed: string[];
    failed: string[];
    skipped: string[];
}>;
/**
 * Execute an agent using its actual repo code with Claude Code as the AI backend.
 */
export declare function executeRepoAgent(domain: string, agent: string, payload: Record<string, unknown>, correlationId: string): Promise<AgentsInvokeResult>;
//# sourceMappingURL=repo-agent-runner.d.ts.map