import { Action, WithParsedExtension } from '@foscia/core'; import { HttpRequestConfig } from '../../../types'; /** * Configure an HTTP request used by the HttpAdapter (see {@link makeHttpAdapterWith}). * Some configuration options will be merged when possible (object query params, * headers, transformers, etc.). * This enhancer can be used to configure a full request object or preconfigure * some common options (e.g. headers and transformers). * Passing a [Fetch request object](https://developer.mozilla.org/docs/Web/API/Request) * as `request` option will ignore any other configuration and request * object will be directly passed to the adapter. Transformers will still be * applied, but other automatic transformation or data passing (params, body, etc.) * won't be applied. * * @param nextConfig * * @category Enhancers */ declare const configureRequest: (nextConfig: HttpRequestConfig) => (action: Action) => Promise & { httpRequestConfig: HttpRequestConfig; }, {}>>; declare const _default: WithParsedExtension(this: Action, nextConfig: HttpRequestConfig): Action; }>; export default _default;