import { RpcConfiguration , RpcDefaultConfiguration , RpcInterfaceDefinition } from "@itwin/core-common" ; internal export class TestRpcManager { public static initializeClient ( interfaces ) { const config = class extends RpcDefaultConfiguration { public override interfaces : any = ( ) => interfaces ; } ; for ( const def of interfaces ) RpcConfiguration . assign ( def , ( ) => config ) ; const instance = RpcConfiguration . obtain ( config ) ; try { RpcConfiguration . initializeInterfaces ( instance ) ; } catch ( _e ) { } } }