/**
 * A base model that has dependencies on foreign data domains.
 */
export class DependentModel extends EventTarget {
    /**
     * A map of foreign data domains.
     * Key: The unique identifier of the foreign domain.
     * Value: The foreign DataDomain instance.
     */
    dependencies = new Map();
    /**
     * The list of foreign domain dependencies.
     */
    dependencyList = [];
    constructor(items = [], instances = []) {
        super();
        this.dependencyList = [...items];
        for (const dep of instances) {
            this.dependencies.set(dep.key, dep);
        }
    }
}
//# sourceMappingURL=DependentModel.js.map