/******************************************************************************** * Copyright (c) 2026 CrossBreeze, EclipseSource and others. * * This program and the accompanying materials are made available under the * terms of the MIT License which is available in the project root. * * SPDX-License-Identifier: MIT ********************************************************************************/ import { type DumpHostStateArgs, type HostDiagnosticsProtocol, type WriteHostHeapSnapshotArgs } from '@hydranium/protocol'; import { ContainerModule } from '@theia/core/shared/inversify'; /** * Host-process diagnostics, computed IN the Theia backend process this service * runs in (the parent / host, distinct from the data-server child that holds the * model store). Universal — `process.memoryUsage()` always works — so the * framework wires it by default. Each result is also written to the backend's * stdout so it reaches the pod log (`kubectl logs`), not only the RPC caller. */ export declare class HostDiagnosticsServer implements HostDiagnosticsProtocol { dumpHostState(args: DumpHostStateArgs): Promise; writeHostHeapSnapshot(args: WriteHostHeapSnapshotArgs): Promise; } /** * Theia backend module that exposes {@link HostDiagnosticsServer} as an ordinary * in-process RPC service at {@link HOST_DIAGNOSTICS_PATH} (not the socket- * forwarded data-server transport). The frontend reaches it with * `bindHostDiagnostics` (see `../browser`). Adopters * `export default createHostDiagnosticsBackendModule()` from a backend-module * entry point. */ export declare function createHostDiagnosticsBackendModule(): ContainerModule; //# sourceMappingURL=host-diagnostics-server.d.ts.map