export { createStreamingReviver }; import type { Reviver } from '@brillout/json-serializer/parse'; import type { ClientReviverContext, ReviverType, TypeContract } from '../../types.js'; import type { AbortError } from '../../../shared/Abort.js'; /** Creates a JSON-serializer reviver that delegates to type-specific plugins. * * Duplicated references are deduplicated, mirroring createStreamingReplacer: the server emits * one replacement string per value identity, so equal wire strings denote the same server-side * value — the first occurrence revives (side effects run once), duplicates resolve to the * already-revived object, and server-side `===` holds on the client too. */ declare function createStreamingReviver(context: ClientReviverContext, onRevived: (revived: { value: unknown; close: () => Promise | void; abort: (abortError: AbortError) => void; }) => void, extensionTypes: ReviverType[]): Reviver;