/** * The DataGeneratorRegistry is a centralized service registry that manages all data generators * by their unique names. It enables generators to reference each other for composing complex generation * workflows and is used by the processor to access the required generators. */ import { DataGeneratorInterface } from './DataGeneratorInterface.js'; export declare class DataGeneratorRegistry { /** * Internal map that stores data generators by their unique names. */ registry: Map; /** * Registers a new data generator in the registry. * * @param generatorName - The unique name to assign to the generator. * @param dataGenerator - The instance of the data generator to be registered. * * @throws Error If a generator with the given name is already registered. */ registerGenerator(generatorName: string, dataGenerator: DataGeneratorInterface): void; /** * Invokes the `saveStore()` method on each registered data generator. * * This method persists the state of all generators in the registry. */ saveStore(): Promise; /** * Invokes the `loadStore()` method on each registered data generator. * * This method restores the state of all generators from persistent storage. */ loadStore(): Promise; /** * Retrieves a data generator by its unique name. * * @param generatorName - The name under which the generator is registered. * @returns The data generator associated with the specified name. * * @throws Error If no generator is found with the given name. */ getGenerator(generatorName: string): DataGeneratorInterface; } //# sourceMappingURL=DataGeneratorRegistry.d.ts.map