import { IFetchComponent } from '@well-known-components/interfaces';
type Context = {
    url: string;
    method: 'get' | 'post' | 'put' | 'delete' | 'patch';
    params?: any;
    data?: any;
    responseType?: string;
    headers?: Record<string, string>;
};
export type CustomClient<T> = (baseUrl: string, fetch: IFetchComponent) => Promise<T>;
export declare const useCustomClient: <T>({ url, method, params, data, headers }: Context) => CustomClient<T>;
export default useCustomClient;
//# sourceMappingURL=fetcher.d.ts.map