import { HttpRequestOptions } from "@cognite/sdk-core"; import { BasicHttpClient } from "@cognite/sdk-core"; import { RefreshMethod, WellsAuthFlowType } from "./clientAuthUtils"; export default class HttpClientWithIntercept extends BasicHttpClient { private authenticatingWithToken; private refreshTokenMethod?; private authFlow?; set setReauthenticateMethod(method: RefreshMethod); refreshToken(originalErrorStatus: number): Promise; set setAuthFlow(flow: WellsAuthFlowType); constructor(baseUrl: string); set setIfUsingLoginToken(bool: boolean); get usesTokenLogin(): boolean; private updateHeaderWithNewToken; /** * Basic HTTP method for GET * * @param path The URL path * @param options Request options, optional * */ asyncGet: (path: string, options?: HttpRequestOptions | undefined) => Promise>; /** * Basic HTTP method for PUT * * @param path The URL path * @param options Request options, optional * */ asyncPut: (path: string, options?: HttpRequestOptions | undefined) => Promise>; /** * Basic HTTP method for POST * * @param path The URL path * @param options Request options, optional * */ asyncPost: (path: string, options?: HttpRequestOptions | undefined) => Promise>; /** * Basic HTTP method for DELETE * * @param path The URL path * @param options Request options, optional */ asyncDelete: (path: string, options?: HttpRequestOptions | undefined) => Promise>; /** * Basic HTTP method for PATCH * * @param path The URL path * @param options Request options, optional */ asyncPatch: (path: string, options?: HttpRequestOptions | undefined) => Promise>; }