"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DomainRegistry = void 0;
/**
 * Domain Registry - Manages all domain adapters
 */
class DomainRegistry {
    constructor() {
        this.domains = new Map();
    }
    /**
     * Register a domain
     */
    register(metadata) {
        this.domains.set(metadata.domain, metadata);
    }
    /**
     * Get domain metadata
     */
    get(domain) {
        return this.domains.get(domain);
    }
    /**
     * Get all registered domains
     */
    getAll() {
        return Array.from(this.domains.values());
    }
    /**
     * Check if domain is registered
     */
    has(domain) {
        return this.domains.has(domain);
    }
}
exports.DomainRegistry = DomainRegistry;
//# sourceMappingURL=domainRegistry.js.map