import type { ReferenceKind } from "../references/index.js"; export type ManifestEntry = { /** Hosted id (the loader's `moduleID` output) — the gate key. */ id: string; /** * Import specifier for the REAL module, resolvable from the emitted * module's location (relative path, or a bare/absolute specifier the * consumer's bundler resolves). Never derived from the incoming id. */ specifier: string; kind: ReferenceKind; /** * The exports the build saw. Always emitted, so the sealed gate narrows * resolution to exactly this list (the per-export allowlist) instead of * "any reference export of a registered module". */ exportNames: readonly string[]; }; /** * Codegen the registration module for a set of reference entries. The result * is ESM source: one static namespace import per entry plus an exported * `registerReferences(gate, { seal = true })` that registers every entry * against the injected gate and seals it. Write it wherever the entry * specifiers resolve from, then import it in the ssr/browser bundle. */ export declare function emitReferenceManifest(entries: readonly ManifestEntry[]): string; //# sourceMappingURL=emitReferenceManifest.d.ts.map