import type { BackendRegistry } from "./types.js"; /** * Dynamically import a backend plugin package and register it. * * The package must export a `registerBackends(registry)` function that * calls `registry.register()` with one or more {@link BackendFactory} * descriptors. * * @param specifier - npm package name or local file path * @param registry - the BackendRegistry to register into * @param options - optional settings * @param options.cwd - directory to resolve specifiers from (defaults to `process.cwd()`) * @throws if the import fails, the module lacks a register export, * or registration itself throws (e.g. duplicate name) */ export declare function loadBackendPlugin(specifier: string, registry: BackendRegistry, options?: { cwd?: string; }): Promise; //# sourceMappingURL=discovery.d.ts.map