import type { AgencyConfig } from "../config.js"; import type { InterruptEffect } from "../symbolTable.js"; import { typeCheck } from "../typeChecker/index.js"; export type ServeMetadata = { /** Same derivation as the compiler stamps onto `fn.module`; pass this to * createServeHandler so discoverExports's module filter matches. */ moduleId: string; exportedNodeNames: string[]; interruptEffectsByName: Record; /** Type-check diagnostics; the caller may format or ignore them. */ errors: ReturnType["errors"]; }; /** * Compute the serve metadata for an Agency file: its exported node names, the * interrupt effects each function/node may raise, and the moduleId the * compiler will stamp. Pure with respect to disk output (no compiled JS is * written). Extracted from `compileForServe` so both share one derivation. */ export declare function collectServeMetadata({ filePath, config, }: { filePath: string; config: AgencyConfig; }): ServeMetadata;