site-panzai/node_modules/seroval/dist/dev/read.d.cts

17 lines
3.4 KiB
TypeScript
Raw Permalink Normal View History

2026-11-13 13:57:04 +01:00
import { A as PluginAccessOptions, C as SerovalUnsupportedTypeError, D as DeserializePluginContext, E as CrossDeserializerContextOptions, F as getPlainObjectPlugins, G as LiveStreamOptions, H as LiveStreamConsumer, I as resolvePlugins, J as isLiveStream, K as LiveStreamProducer, L as StreamParsePluginContext, M as PluginInfo, N as SerovalMode, O as VanillaDeserializerContextOptions, P as createPlugin, Q as isStream, S as SerovalUnsupportedNodeError, T as BaseDeserializerContextOptions, U as LiveStreamDelivery, V as LiveStream, W as LiveStreamEvent, X as StreamListener, Y as Stream, Z as createStream, _ as SerovalMissingReferenceForIdError, a as OpaqueReference, b as SerovalSerializationError, c as SerovalConflictedNodeIdError, d as SerovalError, f as SerovalLiveStreamError, g as SerovalMissingReferenceError, h as SerovalMissingPluginError, i as createReference, it as AsyncParsePluginContext, j as PluginData, k as Plugin, l as SerovalDepthLimitError, m as SerovalMissingInstanceError, n as v, nt as SerializePluginContext, o as LiveStreamErrorReason, p as SerovalMalformedNodeError, q as createLiveStream, r as Sequence, s as SerovalAbortedError, st as SerovalNode, t as Validator, u as SerovalDeserializationError, v as SerovalParserError, w as Feature, x as SerovalUnknownTypedArrayError, y as SerovalPluginValidationError, z as SyncParsePluginContext } from "./shared-Dju99SLx.cjs";
import { i as fromJSON, n as SerovalJSON, r as deserialize, t as FromJSONOptions } from "./read-CgzYPh_Q.cjs";
//#region src/core/cross/read.d.ts
export type FromCrossJSONOptions = CrossDeserializerContextOptions;
export declare function fromCrossJSON<T>(source: SerovalNode, options: FromCrossJSONOptions): T;
export interface CrossDeserializer {
/** Deserializes one streamed record. Records share references. */
deserialize<T>(node: SerovalNode): T;
/** Deferred values (promises, streams) created but not yet settled. */
readonly pending: number;
/** Rejects pending promises and throws into open streams; idempotent. */
abort(reason: unknown): void;
}
export type CrossDeserializerOptions = FromCrossJSONOptions;
export declare function createCrossDeserializer(options: CrossDeserializerOptions): CrossDeserializer;
//#endregion
export { type AsyncParsePluginContext, type BaseDeserializerContextOptions, type CrossDeserializerContextOptions, type DeserializePluginContext, Feature, FromJSONOptions, LiveStream, type LiveStreamConsumer, type LiveStreamDelivery, LiveStreamErrorReason, type LiveStreamEvent, type LiveStreamOptions, type LiveStreamProducer, OpaqueReference, Plugin, PluginAccessOptions, PluginData, PluginInfo, Sequence, type SerializePluginContext, SerovalAbortedError, SerovalConflictedNodeIdError, SerovalDepthLimitError, SerovalDeserializationError, SerovalError, SerovalJSON, SerovalLiveStreamError, SerovalMalformedNodeError, SerovalMissingInstanceError, SerovalMissingPluginError, SerovalMissingReferenceError, SerovalMissingReferenceForIdError, SerovalMode, type SerovalNode, SerovalParserError, SerovalPluginValidationError, SerovalSerializationError, SerovalUnknownTypedArrayError, SerovalUnsupportedNodeError, SerovalUnsupportedTypeError, Stream, type StreamListener, type StreamParsePluginContext, type SyncParsePluginContext, type Validator, type VanillaDeserializerContextOptions, createLiveStream, createPlugin, createReference, createStream, deserialize, fromJSON, getPlainObjectPlugins, isLiveStream, isStream, resolvePlugins, v };