/** @packageDocumentation * @module RpcInterface */ import { IModelRpcProps } from "./IModel"; import { RpcInterface, RpcInterfaceDefinition, RpcInterfaceImplementation } from "./RpcInterface"; import { RpcRoutingToken } from "./rpc/core/RpcRoutingToken"; /** Describes the endpoints of an RPC interface. * @public */ export interface RpcInterfaceEndpoints { interfaceName: string; interfaceVersion: string; operationNames: string[]; compatible: boolean; } /** RPC interface management is concerned with coordination of access and configuration for RPC interfaces. * @public */ export declare class RpcManager { /** Initializes an RPC interface class. * @note This function must be called on the frontend and on the backend for each RPC interface class used by an application. */ static initializeInterface(definition: RpcInterfaceDefinition): void; /** Terminates an RPC interface class. */ static terminateInterface(definition: RpcInterfaceDefinition): void; /** Returns the RPC client instance for the frontend. */ static getClientForInterface(definition: RpcInterfaceDefinition, routing?: RpcRoutingToken): T; /** Register the RPC implementation class for the backend. */ static registerImpl(definition: RpcInterfaceDefinition, implementation: RpcInterfaceImplementation): void; /** Supply the instance of the RPC interface implementation class for the backend (optional). */ static supplyImplInstance(definition: RpcInterfaceDefinition, instance: TImplementation): void; /** Unregister the RPC implementation class for the backend. */ static unregisterImpl(definition: RpcInterfaceDefinition): void; /** Describes the RPC interfaces and endpoints that are currently available from the backend. * @note Some endpoints may be marked incompatible if the frontend expected a different interface declaration than the backend supplied. RPC operations against an incompatible interface will fail. */ static describeAvailableEndpoints(): Promise; /** Configures RPC protocols that employ iModel-based routing infrastructure. */ static setIModel(props: IModelRpcProps): void; } //# sourceMappingURL=RpcManager.d.ts.map