import type { DiscoveryConsumer, Finding, NamedConfidence, ProjectModel } from "../types.js"; import type { PlanningObservation, PlanningObservationConfidence } from "../../planning/observation.js"; export declare const CLI_CONSUMER_ID = "discovery:cli-consumer"; export declare const CLI_CONSUMER_VERSION = "1.0.0"; export type CliConsumerOutput = { repositoryType: string; languages: string[]; frameworks: string[]; hasTests: boolean; hasPackageManager: boolean; fileCount: number; observationCount: number; discoverySessionId: string; discoverySessionHash: string; }; export interface CliConsumerContext { projectName?: string; } export type RepositoryType = "empty" | "node" | "python" | "polyglot" | "brownfield" | "unknown"; export declare function mapConfidenceLabel(label: NamedConfidence["confidence"]["label"]): PlanningObservationConfidence; export declare function classifyRepository(projectModel: ProjectModel): RepositoryType; export declare function canonicalLanguages(projectModel: ProjectModel): string[]; export declare function buildObservations(repositoryType: RepositoryType, projectModel: ProjectModel, findings: { items: Finding[]; }, timestamp: number): PlanningObservation[]; /** * Create the CLI bootstrap consumer. * * Projects a concise, deterministic summary of the repository from the * DiscoverySession. The bootstrap analyzer maps this summary back into * the legacy RepositoryAnalysis shape. */ export declare function createCliConsumer(): DiscoveryConsumer;