import type { BunPlugin } from "bun"; import { type BurgerModule } from "./aliases.ts"; export interface ImportViolation { specifier: string; /** Absolute path of the importing file. */ importer: string; reason: string; } export interface GateState { violations: ImportViolation[]; } export declare const BRIDGE_NAMESPACE = "burger-require"; /** * CommonJS `require("fs")` cannot be left external: the output would call * a `__require` shim that does not exist in QuickJS. Instead it resolves to * this ESM module, which the bundler links into the CommonJS wrapper. */ export declare function bridgeSource(target: BurgerModule): string; /** * Resolves every `burger:*` and C6-aliased specifier to an external * `burger:*` import, and records (and externalises, so the build can finish * and report every problem at once) every other `node:*`, `bun:*`, Node * built-in and native addon import. */ export declare function burgerResolvePlugin(state: GateState): BunPlugin;