import type { HttpClientInstance, RerouteRule } from '../../utils'; import { BkBase } from '../bk-base'; import { Labels } from '../localized-components'; /** * @superclass * @description Extends `BkBase` by adding an instance of a basic * http client which wraps browser's `fetch` API. It provides an axios-like * API on fetch GET and POST method */ export declare class BkHttpBase extends BkBase { _basePath?: string; _headers?: HeadersInit; _credentials?: RequestCredentials; _reroutingRules?: RerouteRule[]; _httpClient: HttpClientInstance; /** * @description http client base path */ get basePath(): string | undefined; set basePath(path: string | undefined); /** * @description http client custom headers */ get headers(): HeadersInit | undefined; set headers(h: HeadersInit | undefined); /** * @description http client custom credentials */ get credentials(): RequestCredentials | undefined; set credentials(c: RequestCredentials | undefined); /** * @description http client custom rerouting rules */ get reroutingRules(): RerouteRule[] | undefined; set reroutingRules(r: RerouteRule[] | undefined); }