import fetch from "node-fetch"; import IClient from "../../../interfaces/Client/IClient"; import { DaprClientOptions } from "../../../types/DaprClientOptions"; import { THTTPExecuteParams } from "../../../types/http/THTTPExecuteParams.type"; export default class HTTPClient implements IClient { readonly options: DaprClientOptions; private isInitialized; private static client; private readonly clientUrl; private readonly logger; private static httpAgent; private static httpsAgent; private daprEndpoint; constructor(options: Partial); private generateEndpoint; getClient(requiresInitialization?: boolean): Promise; setIsInitialized(isInitialized: boolean): void; getIsInitialized(): boolean; _startAwaitSidecarStarted(): Promise; stop(): Promise; start(): Promise; executeWithApiVersion(apiVersion: string | undefined, url: string, params?: any): Promise; /** * * @param url The URL to call * @param params The parameters to pass to our URL * @param requiresInitialization If false, it doesn't require the Dapr sidecar to be started and might fail * @returns The result of the call */ execute(url: string, params?: THTTPExecuteParams | undefined | null, requiresInitialization?: boolean): Promise; }