/** * openlore generate — programmatic API * * Generates OpenSpec specification files from analysis results using LLM. * Writes generated artifacts, but never controls the process and is console-silent by default. */ import type { RepoStructure, LLMContext } from '../core/analyzer/artifact-generator.js'; import type { DependencyGraphResult } from '../core/analyzer/dependency-graph.js'; import type { RefactorReport } from '../core/analyzer/refactor-analyzer.js'; import type { GenerateApiOptions, GenerateResult } from './types.js'; import { type GenerationManifest } from '../core/runtime/analysis-generation.js'; interface AnalysisData { repoStructure: RepoStructure; llmContext: LLMContext; depGraph?: DependencyGraphResult; refactorReport?: RefactorReport; generationCompatibility: GenerationManifest['compatibility']; } export declare class GenerateAnalysisError extends Error { readonly code: 'analysis-unavailable' | 'analysis-changed'; constructor(code: 'analysis-unavailable' | 'analysis-changed', message: string); } type JsonArtifactReader = (path: string, label: string) => Promise; export declare function loadAnalysisData(analysisPath: string, readArtifact?: JsonArtifactReader): Promise; export declare function openloreGenerate(options?: GenerateApiOptions): Promise; export {}; //# sourceMappingURL=generate.d.ts.map