import { Agent as HttpAgent } from 'node:http'; import type { IActionContext } from '@comunica/types'; import type { Dispatcher } from 'undici'; import type { IActorHttpFetchArgs } from './ActorHttpFetch'; import type { IFetchInitPreprocessor } from './IFetchInitPreprocessor'; /** * Overrides the HTTP agent to perform better in Node.js. */ export declare class FetchInitPreprocessor implements IFetchInitPreprocessor { private readonly agent; private dispatcher; private cache; constructor(args: IActorHttpFetchArgs); protected createCache(args: IActorHttpFetchArgs): void; handle(init: RequestInit, context: IActionContext): Promise HttpAgent; dispatcher?: Dispatcher; }>; }