/**
 * Serialize/deserialize non-Buffer TypedArrays for Moleculer MsgPack transport.
 *
 * MsgPack handles Buffer natively but serializes Float32Array, Int16Array etc.
 * as plain objects with numeric keys. These helpers convert them to Buffer
 * with a type tag for transport and reconstruct them on arrival.
 *
 * Used by:
 * - capability-bridge.ts (hub → child proxy calls)
 * - addon-service-factory.ts (child → provider param reconstruction)
 */
/**
 * Convert non-Buffer TypedArrays → `{ __typedArray, type, data: Buffer }` recursively.
 *
 * A WeakSet tracks objects already visited on the current descent path so a
 * cyclic input throws a precise error at the offending path instead of
 * blowing the stack with "Maximum call stack size exceeded". tRPC inputs
 * should never be cyclic in practice — this is a safety net for regressions
 * that accidentally introduce shared-reference loops (e.g. a config object
 * that holds a back-pointer into its own container).
 */
declare function serializeTypedArrays(value: unknown, seen?: WeakSet<object>, path?: string): unknown;
/** Reconstruct TypedArrays from tagged objects. */
declare function deserializeTypedArrays(value: unknown): unknown;
export { serializeTypedArrays, deserializeTypedArrays };
//# sourceMappingURL=typed-array-serde.d.ts.map