/**
 * Phase 5b — Project-root sweep + KG eager-build (olam-setup-epic Phase D).
 *
 * Walks `--projects <path>` (default ~/Projects) to max-depth 3.
 * Finds repos with .adb.yaml OR .olam.yaml at repo root.
 * Calls `olam repos add` per repo (--from-sweep flag bypasses interactive confirm).
 * Optionally runs KG eager-build on first 3 repos by mtime, wall-time budget 90s.
 * Appends trust-audit-log entry `setup-project-sweep-completed` on success.
 *
 * Dependency injection: real @olam/core functions are lazily imported so this
 * module resolves in vitest without a pre-built @olam/core dist. Callers
 * inject stubs via WalkFn / EagerBuildFn / AddRepoFn parameters for unit tests.
 */
import type { RunSetupOptions, RunSetupDeps, PhaseResult } from './setup.js';
import type { RepoMatch } from '@olam/core/src/setup/project-sweep.js';
import type { EagerBuildResult } from '@olam/core/src/setup/kg-eager.js';
import type { AppendTrustAuditFn } from './setup-phase-5a-skill-source.js';
export type WalkFn = (rootPath: string, opts?: {
    exclude?: ReadonlyArray<string>;
}) => RepoMatch[];
export type EagerBuildFn = (repos: ReadonlyArray<RepoMatch>) => Promise<EagerBuildResult>;
export type AddRepoFn = (opts: {
    name: string;
    path: string;
}) => {
    name: string;
    path: string;
};
export interface ProjectSweepDeps {
    readonly walkFn?: WalkFn;
    readonly eagerBuildFn?: EagerBuildFn;
    readonly addRepoFn?: AddRepoFn;
    readonly appendTrustAuditFn?: AppendTrustAuditFn;
    readonly printInfo?: (scope: string, msg: string) => void;
    readonly existsSync?: (p: string) => boolean;
}
export declare function runProjectSweepPhase(opts: RunSetupOptions, deps: RunSetupDeps, sweepDeps?: ProjectSweepDeps): Promise<PhaseResult>;
//# sourceMappingURL=setup-phase-5b-project-sweep.d.ts.map