import type { AgencyConfig } from "../config/config.js"; import { type CompileOptions } from "./buildSession.js"; export declare function resetCompilationCache(): void; /** * Compile a set of entry files under ONE union closure, like the * directory branch of `compile()` does. Callers with many entry points * (the test runner's precompile pass) use this instead of per-file * `compile()` calls, which would rebuild the closure once per entry. * * Unlike the CLI directory branch, closure errors THROW * (`CompileClosureError`) instead of exiting, so programmatic callers * can attach context. Parse/typecheck failures inside per-file * `compile()` keep their existing exit behavior. */ export declare function compileMany(config: AgencyConfig, files: string[], options?: { quiet?: boolean; allowTestImports?: boolean; }): void; /** * Compile an .agency file (or directory of them) to JavaScript. Thin * delegate over the default BuildSession — all pipeline logic and caching * state live in buildSession.ts. */ export declare function compile(config: AgencyConfig, inputFile: string, _outputFile?: string, options?: CompileOptions): string | null;