export { KNOWLEDGE_MANIFEST_PATH } from './project-knowledge.js'; export declare const DERIVED_KNOWLEDGE_START = ""; export declare const DERIVED_KNOWLEDGE_END = ""; export declare const KNOWLEDGE_SCHEMA_VERSION = 1; export declare const METADATA_INDEX_PATH = ".setup-agents/sf-metadata-index.json"; export type KnowledgeSetupLevel = 'quick' | 'full'; export type KnowledgeScopeKind = 'repository-full' | 'source-root-full' | 'filtered'; export type KnowledgeScope = { kind: KnowledgeScopeKind; include: string[]; exclude: string[]; }; export type KnowledgeManifest = { schemaVersion: number; pluginVersion: string; setupLevel: KnowledgeSetupLevel; scope: KnowledgeScope; sourceRoots: string[]; sourceDigest: string; generatedAt?: string; artifactDigests: Record; degradedReasons: string[]; }; export type KnowledgeRefreshOptions = { cwd: string; setupLevel?: KnowledgeSetupLevel; sourceRoots?: string[]; scope?: KnowledgeScope; generatedAt?: string; }; export type KnowledgeRefreshPlan = { cwd: string; files: Record; manifest: KnowledgeManifest; changedPaths: string[]; }; export type KnowledgeRefreshCheck = { current: boolean; changedPaths: string[]; degradedReasons: string[]; }; export type KnowledgeArtifactReadiness = { path: string; status: 'ready' | 'missing' | 'template' | 'stale' | 'degraded' | 'partial'; reason: string; }; export type KnowledgeReadiness = { ready: boolean; artifacts: KnowledgeArtifactReadiness[]; repairCommand: string; }; export declare function planKnowledgeRefresh(options: KnowledgeRefreshOptions): KnowledgeRefreshPlan; export declare function checkKnowledgeRefresh(plan: KnowledgeRefreshPlan): KnowledgeRefreshCheck; export declare function writeKnowledgeRefresh(plan: KnowledgeRefreshPlan): string[]; export declare function writeQuickKnowledgeManifest(cwd: string, generatedAt?: string): KnowledgeManifest; export declare function assessKnowledgeReadiness(cwd: string): KnowledgeReadiness; export declare function replaceDerivedBlock(existing: string, body: string): string;