/**
 * Platform Repository Resolver
 *
 * Extends the existing repo cache system (same ~/.agentics/repo-cache/ root)
 * to support git-based platform repositories with explicit commit SHA pinning.
 *
 * Resolution order:
 *   1. CLI flag (--contracts-sha, --infra-sha, --integrations-sha)
 *   2. Lock file entry (~/.agentics/repo-cache/platform-repos.lock.json)
 *   3. Fail deterministically (ECLI-DEP-001)
 *
 * Repos are cloned/fetched only when --fetch-deps is provided.
 * Integrity is verified by matching git HEAD against the expected SHA.
 *
 * No floating branch references. No silent fetching. Offline-first.
 */
export interface PlatformRepoEntry {
    readonly url: string;
    readonly cliFlag: string;
}
/**
 * Platform repository registry. Each entry maps a repo name to its
 * GitHub URL and the CLI flag used to provide a pinned SHA.
 */
export declare const PLATFORM_REPOS: Readonly<Record<string, PlatformRepoEntry>>;
export interface LockFileEntry {
    sha: string;
    url: string;
    cached_at: string;
}
export type PlatformRepoLock = Record<string, LockFileEntry>;
export declare function readLockFile(): PlatformRepoLock;
export declare function writeLockFile(lock: PlatformRepoLock): void;
/**
 * Resolve the pinned commit SHA for a repo.
 *
 * Priority: CLI flag → lock file → error.
 */
export declare function resolveSHA(repoName: string, cliOptions: Record<string, string>, lock: PlatformRepoLock): string;
export interface ResolvedRepo {
    path: string;
    sha: string;
}
export type ResolvedPlatformRepos = Record<string, ResolvedRepo>;
/**
 * Resolve all platform repos to local cached paths with verified SHAs.
 *
 * @param cliOptions - Parsed CLI options (e.g. `{ 'contracts-sha': 'abc123' }`)
 * @param cliFlags   - Parsed CLI flags (e.g. `{ 'fetch-deps': true }`)
 * @returns Map of repo name → { path, sha }
 */
export declare function resolveAllPlatformRepos(cliOptions: Record<string, string>, cliFlags: Record<string, boolean>): ResolvedPlatformRepos;
//# sourceMappingURL=platform-repo-resolver.d.ts.map