import type { IActionHttp, IActorHttpOutput } from '@comunica/bus-http'; import type { ActorHttpInvalidateListenable } from '@comunica/bus-http-invalidate'; import type { Actor, IActionObserverArgs, IActorTest } from '@comunica/core'; import { ActionObserver } from '@comunica/core'; /** * Observes HTTP actions, and maintains a counter of the number of requests. */ export declare class ActionObserverHttp extends ActionObserver { readonly httpInvalidator: ActorHttpInvalidateListenable; readonly observedActors: string[]; requests: number; /** * @param args - @defaultNested {} bus */ constructor(args: IActionObserverHttpArgs); onRun(actor: Actor, _action: IActionHttp, _output: Promise): void; } export interface IActionObserverHttpArgs extends IActionObserverArgs { /** * An actor that listens to HTTP invalidation events * @default { a } */ httpInvalidator: ActorHttpInvalidateListenable; /** * The URIs of the observed actors. * @default {urn:comunica:default:http/actors#fetch} */ observedActors: string[]; }