export type WorkspaceEvidenceStatus = "OK" | "WARN" | "MISSING" | "STALE" | "NOT_ONBOARDED" | "NOT_COLLECTED" | "PARTIAL" | "UNKNOWN" | "ERROR"; export interface WorkspaceRepo { id: string; path: string; kind?: string; owner?: string; remote?: string; ref?: string; /** Path to the child repo's router, relative to the child repo root. */ router: string; } export interface WorkspaceEdge { id: string; from: string; to: string; kind: string; contractPath?: string; consumerPath?: string; } export interface WorkspaceManifest { status: "OK" | "ERROR"; errors: string[]; raw: Record; schemaVersion?: number; workspaceType?: string; graphScope?: string; contextDir: string; repos: WorkspaceRepo[]; edges: WorkspaceEdge[]; git: boolean; lastSnapshot?: string; generatedBy?: string; } export declare function assertWorkspacePrintable(value: string, label: string): void; export declare function normalizeWorkspacePath(raw: string, label?: string): string; export declare function normalizeWorkspaceRemote(raw: unknown): string | undefined; export declare function normalizeWorkspaceRef(raw: unknown): string | undefined; export declare function parseWorkspaceManifest(raw: unknown, defaultContextDir?: string): WorkspaceManifest; export declare function readWorkspaceManifest(root: string, defaultContextDir?: string): WorkspaceManifest | undefined; export declare function workspaceManifestExists(root: string): boolean; export declare function workspaceReposFromPaths(paths: readonly string[], router?: string): WorkspaceRepo[];