import { BaseReviver } from "./baseReviver.js"; import { AgencyFunction } from "../agencyFunction.js"; type FunctionRefRegistry = Record; export declare class FunctionRefReviver implements BaseReviver { registry: FunctionRefRegistry | null; nativeTypeName(): string; isInstance(value: unknown): value is AgencyFunction; serialize(value: AgencyFunction): Record; validate(value: Record): boolean; revive(value: Record): AgencyFunction; /** A registry miss must never throw here: revive() also runs during * SERIALIZATION (`deepClone` inside `State.toJSON` round-trips through * `JSON.parse` with revivers), so an eager throw crashes checkpoint * writes — including the guard-trip checkpoint that salvages drafts * (#652). Every miss maps to a stub that survives re-serialization and * fails, precisely, only if something actually invokes it. */ private reviveMiss; } export {};