import { fetchGitHubRepoSnapshot } from "../../github.js"; import type { AssetCatalogEntry, DemandProfile, GitHubRepoSnapshot, SelectionRegistry, SourceDefinition } from "../../types.js"; type FetchGitHubRepoSnapshot = typeof fetchGitHubRepoSnapshot; /** * Provides harvest git hub repo source for the lifecycle pipeline. */ export declare function harvestGitHubRepoSource(source: SourceDefinition, demandProfile: DemandProfile | null, selectionRegistry: SelectionRegistry, projectRoot: string, fetchSnapshot?: FetchGitHubRepoSnapshot): Promise; declare function buildGitHubCatalogEntry(snapshot: GitHubRepoSnapshot, source: SourceDefinition, treeEntry: GitHubRepoSnapshot["tree"]["entries"][number], demandProfile: DemandProfile | null, selectionRegistry: SelectionRegistry, omsFileSizes: ReadonlyMap): AssetCatalogEntry | null; declare function collectRepositoryTrustEvidence(snapshot: GitHubRepoSnapshot, source: SourceDefinition): { scoreBonus: number; signals: string[]; }; declare function matchesSourcePathFilters(normalizedPath: string, source: SourceDefinition): boolean; declare function isExecutableMcpServerPath(normalizedPath: string, source: SourceDefinition): boolean; /** * Rejects implementation-only files that happen to live below directories * containing words such as `mcp`, `server`, or `plugin`. These files are * components of an installable unit, not standalone agent assets. */ declare function isImplementationOnlyRepositoryPath(relativePath: string, source?: SourceDefinition): boolean; /** * Returns true if the given relative path lies inside a dependency directory * (node_modules, vendor, .venv, etc.). Ticket: #405. */ declare function isDependencyDirectoryPath(relativePath: string): boolean; /** Exposes github-harvester internals for focused unit testing. */ export declare const githubHarvesterInternals: { readonly collectRepositoryTrustEvidence: typeof collectRepositoryTrustEvidence; readonly isDependencyDirectoryPath: typeof isDependencyDirectoryPath; readonly isImplementationOnlyRepositoryPath: typeof isImplementationOnlyRepositoryPath; readonly isExecutableMcpServerPath: typeof isExecutableMcpServerPath; readonly matchesSourcePathFilters: typeof matchesSourcePathFilters; readonly buildGitHubCatalogEntry: typeof buildGitHubCatalogEntry; }; export {};