/** @packageDocumentation * @module RpcInterface */ import { ClientRequestContext, SerializedClientRequestContext } from "@bentley/bentleyjs-core"; import { SerializedRpcRequest } from "./RpcProtocol"; import { RpcRequest } from "./RpcRequest"; /** Interface to enable passing application-specific context with each RPC request. * @public */ export interface RpcRequestContext { /** Used to get the id of the request at the frontend */ getId: (request: RpcRequest) => string; /** Used at frontend to serialize client specified context */ serialize: (request: RpcRequest) => Promise; /** Used at backend to deserialize client specified context */ deserialize: (request: SerializedRpcRequest) => Promise; } //# sourceMappingURL=RpcRequestContext.d.ts.map