import { AUTH_TYPE } from './types'; export declare class FetchClient { onError: (message: string) => Promise; authHeader: Record; protectedRoutes: { GET: string[]; POST: string[]; DELETE: string[]; }; publicRoutes: { GET: string[]; POST: string[]; DELETE: string[]; }; authType: AUTH_TYPE | undefined; baseUrl: string; headers: Record; constructor(baseUrl: URL, onError?: (message: string) => Promise, headers?: Record, authHeader?: Record, protectedRoutes?: { GET: string[]; POST: string[]; DELETE: string[]; }, publicRoutes?: { GET: string[]; POST: string[]; DELETE: string[]; }, authType?: AUTH_TYPE | undefined); /** will also throw if onError is defined */ private fetch; get(url: string, headers?: Record): Promise; getAll(url: string, headers?: Record): Promise; getTotal(url: string): Promise; post(url: string, headers?: Record, body?: BodyInit): Promise; delete(url: string, headers?: Record): Promise; }