@fairmint/canton-node-sdk
Version:
Canton Node SDK
23 lines • 882 B
TypeScript
import { ApiType, ClientConfig } from './types';
import { BaseClient, SimpleBaseClient } from './BaseClient';
/** Factory for creating and managing API client instances */
export declare class ClientFactory {
private static clientRegistry;
/**
* Register a client implementation for a specific API type
*/
static registerClient(apiType: ApiType, clientClass: new (config: ClientConfig) => BaseClient | SimpleBaseClient): void;
/**
* Create a client for the specified API type
*/
static createClient(apiType: ApiType, config: ClientConfig): BaseClient | SimpleBaseClient;
/**
* Get all registered API types
*/
static getRegisteredApiTypes(): ApiType[];
/**
* Check if a client is registered for the given API type
*/
static hasClient(apiType: ApiType): boolean;
}
//# sourceMappingURL=ClientFactory.d.ts.map