import type * as RDF from '@rdfjs/types'; import * as Algebra from './algebra.js'; import { AlgebraFactory } from './index.js'; /** * Utility for canonicalizing SPARQL Algebra operations by replacing blank node * and variable names with deterministic generated names. * Useful for comparing algebra representations in tests. */ export declare class Canonicalizer { constructor(); blankId: number; genValue(): string; /** * Replaces values of BlankNodes in a query with newly generated names. * @param res * @param replaceVariables */ canonicalizeQuery(res: Algebra.Operation, replaceVariables: boolean): Algebra.Operation; replaceValue(term: RDF.Term, nameMapping: Record, replaceVars: boolean, factory: AlgebraFactory): RDF.Term; }