/** @packageDocumentation * @module Differencing */ import { type AnySchemaDifference } from "./SchemaDifference"; /** * Defines the interface for a visitor that can be used to traverse schema differences. * It dynamically creates a method for each schema difference type. * @internal */ export type SchemaDifferenceVisitor = { [Difference in AnySchemaDifference as `visit${Difference["schemaType"]}Difference`]: (entry: Difference, index: number, array: AnySchemaDifference[]) => Promise; }; /** * Implementation of a walker that traverses schema differences and calls the appropriate * method on the visitor. * @internal */ export declare class SchemaDifferenceWalker { private readonly _visitor; /** Initializes a new instance of SchemaDifferenceWalker class. */ constructor(visitor: SchemaDifferenceVisitor); /** * Traverses the schema differences and calls the appropriate method on the visitor. * @param differences The differences to traverse. */ traverse(differences: Array): Promise; /** * Calls the appropriate method on the visitor based on the schema difference type. */ private visit; } //# sourceMappingURL=SchemaDifferenceVisitor.d.ts.map