/**
 * Pure compilation pipeline for Agency source strings.
 * No process.exit(), no console.log(). Returns errors as data.
 */
import { AgencyConfig } from "../config.js";
import { ImportPolicy } from "../importPaths.js";
type CompileSuccess = {
    success: true;
    code: string;
    moduleId: string;
};
type CompileFailure = {
    success: false;
    errors: string[];
};
export type CompileResult = CompileSuccess | CompileFailure;
export type CompileSourceOptions = AgencyConfig & {
    /**
     * Declarative import policy. Disallowed imports cause compilation to
     * fail with one error per violating import path.
     * See `lib/importPaths.ts` for the ImportPolicy shape.
     */
    imports?: ImportPolicy;
};
export { typeCheckSource } from "./typecheck.js";
export type { TypeCheckDiagnostic, TypeCheckReport } from "./typecheck.js";
export declare function compileSource(source: string, config: CompileSourceOptions): CompileResult;
