UNPKG

@tvkitchen/countertop

Version:

The entry point for developers who want to set up a TV Kitchen.

19 lines (18 loc) 691 B
/// <reference types="node" /> import avro from 'avsc'; import type { PayloadParameters, PayloadType } from '../types'; export declare class Payload { private static readonly avroType; readonly data: Buffer; readonly type: PayloadType | string; readonly createdAt: string; readonly origin: string; readonly duration: number; readonly position: number; constructor(parameters: PayloadParameters); static serialize(payload: Payload): string; static deserialize(serializedPayload: string): Payload; static getAvroType(): avro.Type; static byteSerialize(payload: Payload): Buffer; static byteDeserialize(serializedPayload: Buffer): Payload; }