import { DoomApi, DoomApiScope } from "../schemas/packageApi.mjs"; //#region src/adapters/packageApiLoader.d.ts /** Env override, so a test or a second composition can point a host elsewhere. */ export declare const PACKAGE_API_DIR_ENV = "DOOMPI_API_DIR"; /** The directory holding the generated modules for this machine. */ export declare function packageApiDirectory(env?: NodeJS.ProcessEnv, homeDir?: string, explicitDirectory?: string): string; /** The generated module a host of this scope imports. */ export declare function packageApiModulePath(scope: DoomApiScope, env?: NodeJS.ProcessEnv, homeDir?: string, explicitDirectory?: string): string; export interface LoadPackageApisOptions { env?: NodeJS.ProcessEnv; homeDir?: string; apiDirectory?: string; onNotice?: (message: string) => void; } /** * The APIs a host of this scope should mount, from the module `doompi sync` * generated. * * No module means nothing has been synced yet, which is an ordinary state for a * fresh machine and not worth a notice. A module that fails to load is: the * host says so and serves nothing, rather than refusing to start, because a * broken package must not cost a session its agent. */ export declare function loadPackageApis(scope: DoomApiScope, options?: LoadPackageApisOptions): Promise; //#endregion //# sourceMappingURL=packageApiLoader.d.mts.map