import { ContextOptions, RequestOptions, UserJwtOptions } from './interfaces'; /** * FetchClient is a class that wrap around the fetch API to make requests. * It is used by the BaseApiClient to make requests to the server */ export declare class FetchClient { private appName; constructor(appName: string); private getFronteggContext; private prepareUrl; private buildQueryParams; private getAdditionalQueryParams; private getAdditionalHeaders; private buildRequestHeaders; private getResponseTraceId; sendRequest: (opts: RequestOptions) => Promise; get: (url: string, params?: any, opts?: Omit) => Promise; post: (url: string, body?: any, opts?: Omit) => Promise; patch: (url: string, body?: any, opts?: Omit) => Promise; put: (url: string, body?: any, opts?: Omit) => Promise; delete: (url: string, body?: any, opts?: Omit) => Promise; postDownload: (url: string, body?: any, params?: any, opts?: any) => Promise; extractHeadersFromOptions: (options?: UserJwtOptions) => { Authorization?: string | undefined; }; /** @deprecated use getContextBaseUrl instead */ static getBaseUrl: (context: ContextOptions, url: string, withFronteggPrefix?: boolean) => string; /** @deprecated use getContextBaseUrl instead */ getBaseUrl: (context: ContextOptions, url: string, withFronteggPrefix?: boolean) => string; getContextBaseUrl: (url: string, withFronteggPrefix?: boolean) => string; static getMetadataHeaders: (context: ContextOptions) => Record; /** @deprecated - use getContextMetadataHeaders instead */ getMetadataHeaders: (context: ContextOptions) => Record; getContextMetadataHeaders: () => Record; static getScopedTenant: () => string | null; } /** * import FetchClient and use it to make requests to the server for specific application * @param appName - the application name to make requests for * @deprecated - use FetchClient directly */ declare const _default: FetchClient; export default _default;