import { DataAccessorBasedStore, type ChangeMap, type ResourceIdentifier, type Patch, type Conditions, type DataAccessor, type IdentifierStrategy, type AuxiliaryStrategy, type Representation } from '@solid/community-server'; import { type LocalFirstRdfRepresentationResolverLike } from '../solidfs/LocalFirstRdfRepresentationResolver'; export interface SparqlUpdateResourceStoreOptions { accessor: DataAccessor; identifierStrategy: IdentifierStrategy; auxiliaryStrategy: AuxiliaryStrategy; metadataStrategy: AuxiliaryStrategy; localFirstRdfRepresentationResolver?: LocalFirstRdfRepresentationResolverLike; } /** * ResourceStore that short-circuits PATCH into direct SPARQL UPDATE * when the underlying DataAccessor supports it. */ export declare class SparqlUpdateResourceStore extends DataAccessorBasedStore { private readonly generator; private readonly parser; private readonly localFirstRdfRepresentationResolver; private readonly metadataAuxiliaryStrategy; protected readonly logger: import("global-logger-factory").Logger; constructor(options: SparqlUpdateResourceStoreOptions); getRepresentation(identifier: ResourceIdentifier): Promise; modifyResource(identifier: ResourceIdentifier, patch: Patch, conditions?: Conditions): Promise; /** * 只处理 SPARQL UPDATE (application/sparql-update)。 * N3 Patch 和其他类型返回 undefined,让 CSS PatchingStore 回退到 get-patch-set 逻辑。 */ private toSparqlUpdate; /** * Ensure SPARQL UPDATE targets the resource graph (CSS stores documents in named graphs). */ private normalizeGraphs; private isSparqlUpdatePatch; private isSparqlCapable; setRepresentation(identifier: ResourceIdentifier, representation: Representation, conditions?: Conditions): Promise; }