/**
 * Code Resolver — Agent-to-Source-Code Mapping (ADR-039)
 *
 * Maps agent identifiers to their source code provenance:
 *   - Package registry lookup (domain → npm package)
 *   - Git context (commit hash from working directory)
 *   - Entry point mapping (agent type → source file)
 *   - Dependency resolution (key runtime dependencies)
 *
 * For agents built into the CLI, provenance points to the CLI's own
 * package and specific source module.
 */
import type { AgentRef, CodeProvenance } from './types.js';
/** Resolve the current git commit hash (cached, best effort). */
export declare function resolveGitCommit(): string;
/** Resolve the CLI package version (cached, best effort). */
export declare function resolveCLIVersion(): string;
/** Clear the cached values (for testing). */
export declare function clearResolverCache(): void;
/**
 * Resolve the code provenance for an agent.
 *
 * Uses the domain→package registry to determine the npm package,
 * then resolves the git commit, entry point, and dependencies.
 */
export declare function resolveCodeProvenance(agent: AgentRef): CodeProvenance;
/**
 * Resolve code provenance for multiple agents in batch.
 * Deduplicates package lookups for efficiency.
 */
export declare function resolveCodeProvenanceBatch(agents: readonly AgentRef[]): Map<string, CodeProvenance>;
/** Check for version discrepancies across agent code provenances. */
export declare function detectVersionDiscrepancies(provenances: ReadonlyMap<string, CodeProvenance>): readonly {
    agentKey: string;
    package: string;
    version: string;
    commitHash: string;
}[];
/** Get the npm package name for an agent domain. */
export declare function getPackageForDomain(domain: string): string;
/** Get all registered domain→package mappings. */
export declare function getAllDomainPackages(): Readonly<Record<string, string>>;
//# sourceMappingURL=code-resolver.d.ts.map