import { HttpClient } from '@angular/common/http';

interface HttpConfig {
    [key: string]: any;
    method: string;
    headers?: Record<string, string>;
    credentials?: RequestCredentials;
    signal?: AbortSignal | null;
}

declare const makeFetch: (httpClient: HttpClient) => (url: string, { method, ...config }: HttpConfig) => Promise<Response>;

export { makeFetch };
export type { HttpConfig };
