import { type SkillParentIndex, type SkillParentResolution } from "../catalog.js"; import { type RepositoryClassificationPathResolution } from "../discovery.js"; import { type SkillMigrationEntrypointPath } from "../skill-path-contract.js"; import type { AssetMetadata, CatalogEntry } from "../model.js"; import { type RepositorySnapshot } from "../repository-evidence.js"; import type { SecurityPolicyAssetEvidence } from "../security-policy-inventory.js"; import type { KnownAssetClassificationEvidence } from "../types/known-classification.js"; import type { AssetGovernanceEvidence } from "../types/governance.js"; import type { ParsedDocument } from "../types/metadata.js"; export interface TargetDocumentEvidence { absolutePath: string; outputPath: string; content: string; document: ParsedDocument; metadata: AssetMetadata; repositoryBoundary: RepositoryClassificationPathResolution; repositoryRoot?: string; repositoryRelativePath: string; entrypoint?: SkillMigrationEntrypointPath; classification: KnownAssetClassificationEvidence; } export type TargetRepositoryEvidence = { state: "resolved"; snapshot: RepositorySnapshot; skillParents: SkillParentIndex; parent: SkillParentResolution; entry?: CatalogEntry; policy?: SecurityPolicyAssetEvidence; classification: KnownAssetClassificationEvidence; governance: AssetGovernanceEvidence | null; } | { state: "unavailable"; reason: "repository-boundary-unresolved" | "repository-boundary-ambiguous" | "snapshot-unavailable"; classification: KnownAssetClassificationEvidence; }; export interface CollectTargetDocumentOptions { /** Preserve each command's established unresolved-path evidence shape. */ unresolvedArtifactPath: "absolute" | "input"; /** Internal fixture seam; normal command execution searches to filesystem root. */ repositoryMarkerSearchBoundary?: string; } /** * Read and structurally classify one command target. * * This stage does not claim parent inheritance or other repository-backed * governance. Those facts require a snapshot and are attached separately. */ export declare function collectTargetDocumentEvidence(target: string, options: CollectTargetDocumentOptions): Promise; /** * Enrich structural target evidence from one repository snapshot. * * Snapshot failures intentionally remain unavailable. Falling back to path * guesses here would manufacture catalog identity or inherited governance. */ export declare function collectTargetRepositoryEvidence(target: TargetDocumentEvidence): Promise;