import { IActionRdfDereference , IActorRdfDereferenceOutput } from "@comunica/bus-rdf-dereference" ; import { ActionContext , Actor , IActorTest , Mediator } from "@comunica/core" ; import * as RDF from "@rdfjs/types" ; /**
 * An RdfDerefencer can dereference URLs to RDF streams, using any RDF serialization.
 */ export class RdfDereferencerBase < Q extends RDF . BaseQuad = RDF . Quad > { public readonly mediatorRdfDereference : Mediator < Actor < IActionRdfDereference , IActorTest , IActorRdfDereferenceOutput > , IActionRdfDereference , IActorTest , IActorRdfDereferenceOutput > ; constructor ( args ) { this . mediatorRdfDereference = args . mediatorRdfDereference ; } param { string } url param { IDereferenceOptions } options return { IActorRdfDereferenceOutput } public dereference ( url , options = { } ) { return this . mediatorRdfDereference . mediate ( { context : ActionContext ( options ) , headers : options . headers , method : options . method , url , } ) ; } } export interface IDereferenceOptions { /**
     * Optional HTTP method to use.
     * Defaults to GET.
     */ method ? : string ; /**
     * Optional HTTP headers to pass.
     */ headers ? : { [ key ] : string ; } ; /**
     * If dereferencing of local files should be enabled.
     * This is not possible in browser environments.
     */ localFiles ? : boolean ; } export interface IRdfDerefencerArgs { mediatorRdfDereference : Mediator < Actor < IActionRdfDereference , IActorTest , IActorRdfDereferenceOutput > , IActionRdfDereference , IActorTest , IActorRdfDereferenceOutput > ; }