import { type SuggestionType } from './detector'; type WikiSourceKind = 'briefing' | 'session-log' | 'decisions' | 'patterns' | 'progress' | 'errors' | 'state' | 'outputs-state' | 'meta-concepts'; type WikiActionType = 'align' | 'bootstrap' | 'memory' | 'meta-concepts' | 'install'; type WikiActionStatus = 'open' | 'done'; type WikiConceptScope = 'global' | 'portfolio' | 'repo'; type WikiConceptStatus = 'candidate' | 'suggested' | 'accepted'; export interface RepoWikiSource { id: string; kind: WikiSourceKind; path: string; exists: boolean; updatedAt?: string; } export interface RepoWikiAction { id: string; type: WikiActionType; status: WikiActionStatus; title: string; detail: string; } export interface RepoWikiMetaConcept { id: string; type: SuggestionType; name: string; summary: string; scope: WikiConceptScope; status: WikiConceptStatus; confidence: number; provenance: string[]; action?: string; diffusionTargets?: string[]; } export interface RepoWikiPrimaryAction { kind: 'prepare' | 'bootstrap' | 'open'; label: string; prompt?: string; } export interface RepoWikiManifest { version: string; contractVersion: string; repo: string; generatedAt: string; role: string; state: { phase: string; mode: string; installMode: string; engine: string; migrationStatus: string; bootstrapStatus: string; cortexReady: boolean; }; summary: { briefingExcerpt: string; tasks: { total: number; completed: number; }; outputsCount: number; }; sources: RepoWikiSource[]; metaConceptsPath: string; actions: RepoWikiAction[]; } export interface CortexWikiRepoSummary { repo: string; repoPath: string; pagePath: string; generatedAt: string; compatibilityState?: string; mode?: string; installMode?: string; engine?: string; sourcesAvailable: number; sourceCount: number; metaConceptCount: number; pendingActions: number; primaryAction: RepoWikiPrimaryAction; } export interface CortexWikiRepoDetail { repo: string; repoPath: string; pagePath: string; compatibilityState?: string; primaryAction: RepoWikiPrimaryAction; manifest: RepoWikiManifest; metaConcepts: RepoWikiMetaConcept[]; } export interface CortexWikiSummary { generatedAt: string; totalTrackedRepos: number; gtRepos: number; syncedRepos: number; repoPages: number; sourcesAvailable: number; sourcesMissing: number; pendingActions: number; candidateMetaConcepts: number; suggestionsPending: number; coveragePercent: number; byRepoState: { aligned: number; needsMigration: number; needsBootstrap: number; candidates: number; }; byConceptType: Record; lastSuggestionSyncAt?: string; lastSuggestionSyncGenerated?: number; topActions: Array; repos: CortexWikiRepoSummary[]; } export declare function ensureCortexWiki(): void; export declare function syncCortexWiki(): CortexWikiSummary; export declare function getCortexWikiSummary(): CortexWikiSummary; export declare function getCortexWikiRepoDetail(repoPath: string): CortexWikiRepoDetail | null; export declare function syncCortexWikiSuggestions(): { ok: boolean; generated: number; summary: CortexWikiSummary; }; export {};