/** * Supported types for the serialization. */ export const supportedTypes: string[]; export function serializeFormattedStream(quadStream: import("@rdfjs/types").Stream | import("node:stream").EventEmitter | null): Promise; export function serializeQuadStream(quadStream: import("@rdfjs/types").Stream | null, mimeType: string, _options?: any | null): Promise; export function getRewriteConfiguration(value: any, datasetBaseUrl?: string): { rewrite: boolean; datasetBaseUrl: string | null; replaceIri: (iri: string) => string; iriOrigin: (iri: string) => string; }; export function generateClient(sparqlEndpoint: string, options: QueryOptions): SPARQLClient; export function initQuery(logger: import("pino").Logger, configuredEndpoints: Record, instanceHostname: string): { endpoints: Record; query: (pluginLogger: import("pino").Logger) => import("../types/index.js").TrifidQuery; }; export type QueryResult = { /** * The response body. */ response: any; /** * The response content type. */ contentType: string; }; export type RewriteResponseOptions = { /** * The string to find. */ find: string; /** * The string to replace with. */ replace: string; }; export type QueryOptions = { /** * Is it a ASK query? */ ask?: boolean; /** * Is it a SELECT query? */ select?: boolean; /** * Headers to use in the request. */ headers?: Record; /** * Replace strings in the response. */ rewriteResponse?: Array; }; export type SPARQLClient = { /** * Supported clients. */ clients: { parsing: ParsingClient; simple: SimpleClient; }; /** * Query function. */ query: (query: string, options?: QueryOptions) => Promise | boolean>; }; /** * SPARQL Endpoint configuration. */ export type SPARQLEndpointConfig = { /** * SPARQL endpoint URL. */ url: string; }; import ParsingClient from 'sparql-http-client/ParsingClient.js'; import SimpleClient from 'sparql-http-client/SimpleClient.js'; //# sourceMappingURL=sparql.d.ts.map