/** * Federation devtools — exposes a `window.__JORVEL__` namespace that surfaces * the live federation state for browser dev-extensions / DOM-inspectable * introspection. * * Read-only — never mutate the registry from outside the runtime. * * ```js * window.__JORVEL__.remotes // { dashboard: { entryUrl, loadedAtMs, integrity? } } * window.__JORVEL__.shareScope // current federation share scope * window.__JORVEL__.timings // [{ name, durationMs, ts }, ...] * window.__JORVEL__.version // runtime semver * ``` */ export interface FederationDevtoolsSnapshot { version: string; remotes: Record; shareScope: Record | null; timings: LoadTiming[]; } export interface RemoteSnapshot { /** URL of the entryUrl actually loaded. */ entryUrl: string; /** ms since epoch when the remote loaded. */ loadedAtMs: number; /** SRI hash, if the loader enforced one. */ integrity?: string; } export interface LoadTiming { /** Remote name. */ name: string; /** Duration in milliseconds. */ durationMs: number; /** ms since epoch when the timing was recorded. */ ts: number; } /** Record a successful remote load. Called by the loader. */ export declare function devtoolsRecordRemote(name: string, entryUrl: string, opts?: { integrity?: string; }): void; /** Record a load-timing sample. Bounded to 200 most-recent. */ export declare function devtoolsRecordTiming(name: string, durationMs: number): void; /** Read the current snapshot (for tests + the devtools panel). */ export declare function getDevtoolsSnapshot(): FederationDevtoolsSnapshot; /** Reset state — tests + hard navigations. */ export declare function _resetDevtools(): void; //# sourceMappingURL=devtools.d.ts.map