UNPKG

json-type-cli

Version:

High-performance JSON Pointer implementation

15 lines (14 loc) 658 B
import { RespDecoder } from '@jsonjoy.com/json-pack/lib/resp/RespDecoder'; import { RespEncoder } from '@jsonjoy.com/json-pack/lib/resp/RespEncoder'; import type { Writer } from '@jsonjoy.com/util/lib/buffers/Writer'; import type { CliCodec } from '../types'; export declare class CliCodecResp implements CliCodec<'resp'> { protected readonly writer: Writer; readonly id = "resp"; readonly description = "RESP3: Redis serialization format"; protected readonly encoder: RespEncoder; protected readonly decoder: RespDecoder; constructor(writer: Writer); encode(value: unknown): Uint8Array; decode(bytes: Uint8Array): unknown; }