import { type AppHostModuleSpecifier, type AppHostModules } from "./app-host-modules.js"; export declare const INTERNAL_INTERCOM_BROKER_ARG = "--atomic-internal-intercom-broker"; export interface BrokerHostModulePlugin { name: string; setup(build: { module(specifier: string, callback: () => Promise<{ exports: object; loader: "object"; }>): void; }): void; } /** * A Bun runtime plugin that resolves `@bastani/atomic` and `@bastani/atomic/storage` to the app bundle's own modules. * The bundle loads on the first such import, which only a broker with multi-node routing makes. */ export declare function createBrokerHostModulePlugin(loadApp: () => Promise, specifiers?: readonly AppHostModuleSpecifier[]): BrokerHostModulePlugin; /** Lets the standalone binary's broker import Atomic's host modules from the app bundle at `appPath`. */ export declare function installBrokerHostModules(appPath: string, specifiers?: readonly AppHostModuleSpecifier[]): void; export declare function getBundledIntercomBrokerPath(executablePath?: string): string; export declare function isBundledIntercomBrokerPath(modulePath: string, executablePath?: string, platform?: NodeJS.Platform): boolean; export declare function validateInternalIntercomBrokerPath(modulePath: string | undefined, executablePath?: string, platform?: NodeJS.Platform): string; export declare function importInternalIntercomBroker(modulePath: string, executablePath?: string, platform?: NodeJS.Platform): Promise; //# sourceMappingURL=internal-intercom-broker.d.ts.map