import type { AsyncIterator } from 'asynciterator'; import type { BindingsStream } from '@comunica/types'; import type { Quad, Variable } from '@rdfjs/types'; import type { SparqlEngine, SparqlQueryOptions, SparqlVoidOptions } from '../sparql/SubgraphQueryEngine'; import { type RdfAccessScope } from './RdfAccessScope'; import type { RdfEngineLike } from './types'; type RdfBindingsStream = BindingsStream & { metadata(): Promise<{ variables: Variable[]; }>; }; /** * Public Cloud SPARQL authority. * * Comunica is the sole SPARQL algebra evaluator. Every RDF/JS source match is * translated into an access-scoped query against the PostgreSQL RDF facts * authority; there is no second evaluator or alternate per-query route. */ export declare class RdfQuerySparqlEngine implements SparqlEngine { private readonly rdfEngine; private readonly comunica; constructor(rdfEngine: RdfEngineLike); queryBindings(query: string, basePath: string, accessScope?: RdfAccessScope, options?: SparqlQueryOptions): Promise; queryBoolean(query: string, basePath: string, accessScope?: RdfAccessScope, options?: SparqlQueryOptions): Promise; queryQuads(query: string, basePath: string, accessScope?: RdfAccessScope, options?: SparqlQueryOptions): Promise>; queryVoid(_query: string, _basePath: string, _accessScope?: RdfAccessScope, _options?: SparqlVoidOptions): Promise; constructGraph(graph: string, basePath: string, accessScope?: RdfAccessScope): Promise>; listGraphs(basePath: string, accessScope?: RdfAccessScope): Promise>; close(): Promise; private context; private assertCloudQuery; } export {};