UNPKG

json-joy

Version:

Collection of libraries for building collaborative editing apps.

18 lines (17 loc) 785 B
import { type Op } from '../../op'; import { MsgPackDecoderFast } from '@jsonjoy.com/json-pack/lib/msgpack/MsgPackDecoderFast'; import type { Path } from '@jsonjoy.com/json-pointer'; import type { JsonPatchOptions } from '../../types'; import type { Reader } from '@jsonjoy.com/util/lib/buffers/Reader'; export declare class Decoder extends MsgPackDecoderFast<Reader> { private readonly options; constructor(options: JsonPatchOptions); decode(uint8: Uint8Array): Op[]; protected decodePatch(): Op[]; protected decodeOp(parent: Op | undefined): Op; protected decodePath(parent: Op | undefined): Path; protected decodeObject(): object; protected decodeArray(): unknown[]; protected decodeArrayHeader(): number; protected decodeString(): string; }