UNPKG

@fairdatasociety/fairdrive-opfs

Version:

Fairdrive OPFS - integrate data sources from Web 2.0 or Web 3.0

23 lines (22 loc) 731 B
import { ModuleConfig } from './module-config'; import { FdpConnectProvider } from './provider'; /** * FdpConnectModule is the main entry point for the Fairdrive Connect library. */ export declare class FdpConnectModule { config: ModuleConfig; bindings: Map<string, FdpConnectProvider>; constructor(config: ModuleConfig); /** * Connects a provider to the module. * @param providerName Provider name * @returns A provider instance */ connect(providerName: string): Promise<any>; /** * Gets a connected provider. * @param providerName Provider name * @returns A provider instance */ getConnectedProviders<T extends FdpConnectProvider>(providerName: string): T; }