import type { ServerResponse } from "node:http"; import type { GatewayControllerState } from "./gateway-controller.js"; import type { AddressInfo } from "node:net"; import type { ControlDiagnostics } from "@onebots/core/control"; import type { GenerationStore } from "../installation/generation-store.js"; interface DiagnosticStatus { manager: ControlDiagnostics["manager"]; gateway: { actual: string; desired: string; recoveryRequired: boolean; }; configuration: { recoveryRequired: boolean; }; generation: { active: { id: string; } | null; recoveryRequired: boolean; }; processOwnership: { available: boolean; }; serviceMigration: { pending: boolean; recoveryRequired: boolean; }; } /** 仅使用既有实例状态及安全文件读取,不加载插件、刷新schema或创建任何存储。 */ export declare function inspectControlDiagnostics(workspace: string, status: DiagnosticStatus, address: AddressInfo | string | null, generations?: Pick): ControlDiagnostics; export declare function gatewayDiagnosticStatus(state: GatewayControllerState, unavailable: boolean): GatewayControllerState; export declare function createControlSnapshotResponder(workspace: string, generations?: Pick): (response: ServerResponse, pathname: string, status: DiagnosticStatus, address: AddressInfo | string | null) => void; export {}; //# sourceMappingURL=diagnostics.d.ts.map