import { parse } from '../parser/rcl.js'; export interface RecordExpansionError { line: string; code: 'RCL-021'; message: string; } export interface RecordResult { source: string; errors: RecordExpansionError[]; } export interface LoadFromEntry { directive: string; file: string; ext: string; generated: string[]; } export interface DataLoadError { directive: string; specifier: string; code: 'RCL-019' | 'RCL-020'; message: string; } export interface DataLoadResult { source: string; entries: LoadFromEntry[]; errors: DataLoadError[]; } export interface DataCopyError { directive: string; specifier: string; code: 'RCL-024' | 'RCL-025' | 'RCL-026'; message: string; } export interface DataCopyResult { source: string; errors: DataCopyError[]; } export interface CompileResult { ok: boolean; inputPath: string; outputPath?: string; error?: string; warnings?: boolean; } export interface CheckResult { ok: boolean; inputPath: string; errors: string[]; warningMessages: string[]; warnings?: boolean; } export declare function loadPlugins(sourcePath: string): Promise; export declare function parseFromSource(source: string, baseDir: string): ReturnType; export interface FieldComment { name: string; pic: string; section: 'working-storage' | 'items'; comment: string; } export interface InspectResult { ok: boolean; inputPath: string; entries: LoadFromEntry[]; errors: DataLoadError[]; fieldComments: FieldComment[]; program?: ReturnType; } export declare function inspect(inputPath: string): InspectResult; export declare function formatInspectReport(result: InspectResult): string; export interface CompileOptions { strict?: boolean; } export declare function compile(inputPath: string, outDir?: string, opts?: CompileOptions): CompileResult; export interface BuildResult { ok: boolean; srcDir: string; outDir: string; compiled: CompileResult[]; errors: CompileResult[]; } export declare function build(srcDir: string, outDir?: string): Promise; export interface CheckOptions { strict?: boolean; formatJson?: boolean; quiet?: boolean; } export declare function check(inputPath: string, opts?: CheckOptions): CheckResult; export interface SourceDiagnostic { code: string; severity: 'error' | 'warning'; message: string; why: string; line: number; col: number; } export interface CompileFromSourceResult { ok: boolean; html?: string; error?: string; diagnostics: SourceDiagnostic[]; } export declare function compileFromSource(source: string, opts?: CompileOptions): CompileFromSourceResult; //# sourceMappingURL=index.d.ts.map