import { GetApplicationConfigurationResponse, IEvaServiceDefinition } from "@springtree/eva-services-core"; import { EvaContext, IEvaServiceCallOptions } from "@springtree/eva-sdk-core-service"; import { BaseHub, IHubConnectionOptions, THubConnectionEventHandler } from "./base-hub.js"; import { IExecuteRequest, IJoinAPIHub } from "../request/api-hub.js"; import { IExecuteResponse } from "../response/api-hub.js"; export interface IExecuteError { request: IExecuteRequest; response: IExecuteResponse; } /** * The API signalr hub implementation. * The API hub can be used to perform request on the EVA backend via websocket instead * of the usual HTTP transport. * This hub exposes no events and has a request/response method called execute that performs * a call to EVA. * * @export * @class APIHub * @extends {BaseHub} */ export declare class APIHub extends BaseHub { setEventHandler(eventName: "connection", handler: THubConnectionEventHandler): void; /** * Creates a APIHub hub instance */ constructor({ configuration, context, options, }: { configuration: GetApplicationConfigurationResponse; context: EvaContext; options?: IHubConnectionOptions; }); /** * Performs an EVA api call using the websocket transport */ execute({ options, payload, service, }: { options?: Omit; payload?: SVC["request"]; service: new () => SVC; }): Promise | undefined>; /** * Helper method to prepare headers in the same fashion as the EvaService class does */ private prepareHeaders; } //# sourceMappingURL=api-hub.d.ts.map