/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { Headers, Request, Response, BaseApiCore, ErrorStrategyOptionType, FetchOptions } from '@managed-api/commons-core'; import { CommonError, AdditionalErrorTypes, ErrorStrategyHandlers, ErrorStrategyOption } from './errorStrategy'; import { ErrorStrategyBuilder } from './builders/errorStrategy'; export interface GenericAppApiCoreOptions extends ErrorStrategyOption { } export declare abstract class GenericAppApiCore extends BaseApiCore { private options?; constructor(options?: GenericAppApiCoreOptions | undefined); setGlobalErrorStrategy(errorStrategy: ErrorStrategyOptionType): void; fetch(resource: string | Request, options?: FetchOptions): Promise>; private constructHeaders; protected buildResponse(url: string, status: number, statusText: string, headers: Headers, body?: string | ArrayBuffer): Response; private getGlobalErrorStrategy; } //# sourceMappingURL=index.d.ts.map