/** * global-registry.ts — Typed accessors for Symbol-keyed globals. * * Replaces ad-hoc (globalThis as any)[Symbol.for(...)] patterns with * typed getter/setter pairs. Each key has its own typed accessor so * consumers don't need to know the Symbol name. */ import type { RenderMetricsSnapshot } from "./render-metrics.js"; interface WidgetMetricsRegistry { getSnapshot(): RenderMetricsSnapshot; } /** Safe typed accessor for widget metrics — returns undefined if not registered. */ export declare function getWidgetMetrics(): WidgetMetricsRegistry | undefined; /** Register widget metrics on the global symbol. */ export declare function setWidgetMetrics(registry: WidgetMetricsRegistry): void; /** Remove widget metrics from the global symbol. */ export declare function clearWidgetMetrics(): void; /** Safe typed accessor for telemetry handler registry — returns undefined if not registered. */ export declare function getTelemetryRegistry(): T | undefined; /** Register telemetry handler registry on the global symbol. */ export declare function setTelemetryRegistry(registry: T): void; export {};