import RuntimeStats from "./classes/RuntimeStats.ts"; import DidPdsCache from "./classes/DidPdsCache.ts"; import Args from "./classes/Args.ts"; export const args: Args = new Args(); export const didPdsCache: DidPdsCache[] = []; export const stats = new RuntimeStats(); declare global { var __args__: Args | undefined; var __didPdsCache__: DidPdsCache | undefined; var __runtimeStats__: RuntimeStats | undefined; } if (typeof (globalThis as any).__args__ === 'undefined') { (globalThis as any).__args__ = args; } if (typeof (globalThis as any).__didPdsCache__ === 'undefined') { (globalThis as any).__didPdsCache__ = didPdsCache; } if (typeof (globalThis as any).__runtimeStats__ === 'undefined') { (globalThis as any).__runtimeStats__ = stats; }