/** * Bombadil 0.7.2's public declarations reference this subpath, but its npm * export map omits it. Keep this ambient declaration pinned to that release's * public type dependency until the package exports the declaration itself. */ declare module "@antithesishq/bombadil/internal" { export type TimeUnit = "milliseconds" | "seconds"; export interface Cell { readonly current: T; update(snapshot: T): void; } export type JSON = | string | number | boolean | null | JSON[] | { [key: string | number | symbol]: JSON } | { toJSON(): JSON }; export class ExtractorCell implements Cell { readonly current: T; readonly index: number; name: string | null; constructor(runtime: Runtime, extract: (state: S) => T); named(name: string): this; run(state: S): T; update(snapshot: T): void; } export class Runtime { readonly extractors: readonly ExtractorCell[]; checkNotExtracting(): void; recordAccess(index: number): void; registerExtractor(cell: ExtractorCell): number; runExtractors(state: S): readonly { readonly index: number; readonly name: string | null; readonly value: JSON; }[]; startTracking(): void; stopTracking(): number[]; } }