"use strict";
/**
 * Internal Component Status Exports
 *
 * These exports are for Harper core internal use only.
 * Components should use the public API from index.ts
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
    for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.query = exports.componentStatusRegistry = exports.crossThreadCollector = exports.StatusAggregator = exports.CrossThreadStatusCollector = exports.ComponentStatusRegistry = exports.ComponentStatus = void 0;
const registry_ts_1 = require("./registry.js");
const ComponentStatusRegistry_ts_1 = require("./ComponentStatusRegistry.js");
// Internal classes and types
var ComponentStatus_ts_1 = require("./ComponentStatus.js");
Object.defineProperty(exports, "ComponentStatus", { enumerable: true, get: function () { return ComponentStatus_ts_1.ComponentStatus; } });
var ComponentStatusRegistry_ts_2 = require("./ComponentStatusRegistry.js");
Object.defineProperty(exports, "ComponentStatusRegistry", { enumerable: true, get: function () { return ComponentStatusRegistry_ts_2.ComponentStatusRegistry; } });
var crossThread_ts_1 = require("./crossThread.js");
Object.defineProperty(exports, "CrossThreadStatusCollector", { enumerable: true, get: function () { return crossThread_ts_1.CrossThreadStatusCollector; } });
Object.defineProperty(exports, "StatusAggregator", { enumerable: true, get: function () { return crossThread_ts_1.StatusAggregator; } });
Object.defineProperty(exports, "crossThreadCollector", { enumerable: true, get: function () { return crossThread_ts_1.crossThreadCollector; } });
// Registry singleton for internal use
var registry_ts_2 = require("./registry.js");
Object.defineProperty(exports, "componentStatusRegistry", { enumerable: true, get: function () { return registry_ts_2.componentStatusRegistry; } });
// All error types for internal error handling
__exportStar(require("./errors.js"), exports);
// All type definitions
__exportStar(require("./types.js"), exports);
// Internal query functions for Harper core
exports.query = {
    /**
     * Get a single component's status
     */
    get(componentName) {
        return registry_ts_1.componentStatusRegistry.getStatus(componentName);
    },
    /**
     * Get all component statuses in the current thread
     */
    all() {
        return registry_ts_1.componentStatusRegistry.getAllStatuses();
    },
    /**
     * Get components by status level
     */
    byStatus(status) {
        return registry_ts_1.componentStatusRegistry.getComponentsByStatus(status);
    },
    /**
     * Get a summary of component statuses
     */
    summary() {
        return registry_ts_1.componentStatusRegistry.getStatusSummary();
    },
    /**
     * Get aggregated status from all threads
     * This is an async operation that collects status from all worker threads
     */
    async allThreads() {
        return ComponentStatusRegistry_ts_1.ComponentStatusRegistry.getAggregatedFromAllThreads(registry_ts_1.componentStatusRegistry);
    },
};
//# sourceMappingURL=internal.js.map