import { Readable } from 'node:stream'; import type { NamedNode, Quad } from '@rdfjs/types'; import { DataAccessor, IdentifierStrategy, RepresentationMetadata, type Guarded, type Representation, type ResourceIdentifier } from '@solid/community-server'; import type { RdfEngineLike, RdfNativeSparqlAccessScope, RdfPreparedUpdateDelta, RdfSourceInput, RdfTextChunkInput, RdfTextSourceInput, RdfVectorChunkInput, RdfVectorSourceInput } from '../rdf/types'; import type { Quint } from '../quint/types'; export declare const PREPARED_UPDATE_MEDIA_TYPE = "application/vnd.xpod.rdf-prepared-delta+json;version=1"; export declare function parsePreparedUpdateDelta(body: string): RdfPreparedUpdateDelta; /** * Structured RDF DataAccessor backed directly by SolidRdfEngine. * * This is the server-owned Pod storage path. It writes resource graphs and * metadata graphs into the term-id RDF index without routing simple CSS LDP * operations through Comunica. */ export declare class SolidRdfDataAccessor implements DataAccessor { private readonly rdfEngine; private readonly identifierStrategy; protected readonly logger: import("global-logger-factory").Logger; private readonly sparqlAdapter; private initialized; private initializing; constructor(rdfEngine: RdfEngineLike, identifierStrategy: IdentifierStrategy); initialize(): Promise; finalize(): Promise; canHandle(representation: Representation): Promise; getData(identifier: ResourceIdentifier): Promise>; getMetadata(identifier: ResourceIdentifier): Promise; getChildren(identifier: ResourceIdentifier): AsyncIterableIterator; writeContainer(identifier: ResourceIdentifier, metadata: RepresentationMetadata): Promise; writeDocument(identifier: ResourceIdentifier, data: Guarded, metadata: RepresentationMetadata): Promise; writeRdfSourceDocument(identifier: ResourceIdentifier, quads: Quad[], metadata: RepresentationMetadata, source: RdfSourceInput): Promise; indexTextSource(source: RdfTextSourceInput, text: string, chunks?: RdfTextChunkInput[]): Promise; deleteTextSource(source: string): Promise; moveTextSource(oldSource: string, next: RdfTextSourceInput): Promise; moveRdfSourceDocument(oldSource: string, next: RdfSourceInput): Promise; indexVectorSource(source: RdfVectorSourceInput, chunks: RdfVectorChunkInput[]): Promise; deleteVectorSource(source: string): Promise; moveVectorSource(oldSource: string, next: RdfVectorSourceInput): Promise; deleteRdfSourceDocument(identifier: ResourceIdentifier): Promise; writeMetadata(identifier: ResourceIdentifier, metadata: RepresentationMetadata): Promise; deleteResource(identifier: ResourceIdentifier): Promise; getDataByGraphPrefix(prefix: string): Promise; prepareSparqlUpdate(query: string, baseIri: string, accessScope?: RdfNativeSparqlAccessScope, options?: { timeoutMs?: number; signal?: AbortSignal; }): Promise; private prepareEmbeddedSparqlUpdate; private getRelatedNames; protected getMetadataNode(name: NamedNode): NamedNode; private isMetadataIdentifier; private replaceMetadata; private putGraphQuads; private scanGraph; private toGraphQuads; }