import type { TelemetryInitConfig } from '@origintrail-official/dkg-node-ui'; import type { DkgConfig } from '../config.js'; import { type ActiveLogExporterMode } from '../telemetry-config.js'; import type { TelemetrySignalAdapter, TelemetryTransitionResult } from './telemetry-runtime.js'; export interface DaemonTelemetryLifecycleOptions { config: DkgConfig; env?: Record; resource: NonNullable; initOtel(config: TelemetryInitConfig): Promise; shutdownOtel(): Promise; startLogExporter(mode: ActiveLogExporterMode): TelemetryTransitionResult | Promise; stopLogExporter(): Promise; log(message: string): void; } /** * Compose the daemon's three telemetry signals behind one lifecycle adapter. * The same adapter is used by boot, the settings toggle, and shutdown so a * runtime enable cannot accidentally start logs without traces/metrics. */ export declare function createDaemonTelemetryLifecycle(options: DaemonTelemetryLifecycleOptions): TelemetrySignalAdapter; //# sourceMappingURL=telemetry-lifecycle.d.ts.map