import type { TelemetryConfig, TelemetryProvider } from "./types.js"; /** * Initialize the global telemetry provider. Called once at the entry point * (CLI command, startAgentServer, startAgentRepl). Lazy-loads the OTEL * provider when configured. * * This is the ONLY module-level state in the telemetry package. Packages * like bridge and connectors receive the provider via constructor injection * from the runner — they never call this function. * * @param rawConfig - The unvalidated `telemetry:` section of `skaile.yaml`, or * `undefined` to use defaults (noop, no I/O). * @returns The initialized {@link TelemetryProvider} (noop or OTEL). * @docLink packages/telemetry/concepts#init-telemetry */ export declare function initTelemetry(rawConfig?: Record): Promise; /** * Get the current telemetry provider. Returns the {@link NoopTelemetryProvider} * if {@link initTelemetry} has not yet been called. * * Bridge, runner, and connector packages use this only during construction — * they store the result and never call `getTelemetry()` on every span. * * @returns The active {@link TelemetryProvider}. * @docLink packages/telemetry/concepts#init-telemetry */ export declare function getTelemetry(): TelemetryProvider; /** * Get the resolved {@link TelemetryConfig}. Returns `undefined` before * {@link initTelemetry} is called. * * @returns The resolved config, or `undefined` if not yet initialized. * @docLink packages/telemetry/concepts#init-telemetry */ export declare function getTelemetryConfig(): TelemetryConfig | undefined; //# sourceMappingURL=context.d.ts.map