import { ESPSDKAdaptor } from "./types/adaptor"; /** * Registry for managing SDK adaptors. * * Provides singleton access to register, retrieve, and manage SDK adaptors * that implement the CDF SDK interface. Uses a Proxy to intercept method calls * and provide helpful error messages for unimplemented methods. */ export declare class AdaptorRegistry { private static instance; private registry; private _activeAdaptorIdentifier; private constructor(); /** * Gets the singleton instance of the AdaptorRegistry. * @returns The singleton AdaptorRegistry instance */ static getInstance(): AdaptorRegistry; /** * Register a new SDK Adaptor * @param adaptor SDK Adaptor implementation */ register(adaptor: ESPSDKAdaptor): void; /** * Get a registered SDK Adaptor by identifier * @param adaptorIdentifier Identifier of the SDK Adaptor */ getAdaptor(adaptorIdentifier: string): ESPSDKAdaptor; /** * Gets all registered adaptor identifiers. * @returns Array of adaptor identifiers */ getRegisteredAdaptorIdentifiers(): string[]; /** * Removes an adaptor from the registry. * @param adaptorIdentifier - The identifier of the adaptor to remove * @throws Error if the adaptor is not found */ unregister(adaptorIdentifier: string): void; /** * Sets the active SDK adaptor by identifier. * The active adaptor is used as the default when no adaptorIdentifier is * explicitly provided (e.g. in userStore.auth methods or syncGroupsList). * @param adaptorIdentifier - The identifier of the adaptor to set as active * @throws ESPCDFRegistryError if the adaptor is not registered */ setActiveAdaptor(adaptorIdentifier: string): void; /** * Returns the identifier of the currently active SDK adaptor, or null if none is set. * @returns The active adaptor identifier, or null */ getActiveAdaptorIdentifier(): string | null; /** * Returns the currently active SDK adaptor instance. * @returns The active SDK adaptor * @throws ESPCDFRegistryError if no active adaptor has been set */ getActiveAdaptor(): ESPSDKAdaptor; /** * Clears all registered adaptors from the registry. */ clear(): void; } export declare const registry: AdaptorRegistry;