export type GetAPI = = Record>(name: string) => Promise; export type Registry = { registerPlugin(name: string, api: unknown): void; closeGate(): void; getAPI: GetAPI; }; /** The registry has no API under this name: the plugin is not installed. */ export declare class APINotRegisteredError extends Error { #private; get code(): 'API_NOT_REGISTERED'; get apiName(): string; constructor(apiName: string); } export declare function createRegistry(): Registry;