UNPKG

@creditkarma/thrift-server-core

Version:
5 lines (4 loc) 423 B
/// <reference types="node" /> import { IStructCodec, ProtocolType, TransportType } from '../types'; export declare function readThriftObject<StrictType>(data: Buffer, ThriftCodec: IStructCodec<any, StrictType>, transportType?: TransportType, protocolType?: ProtocolType): Promise<[StrictType, Buffer]>; export declare function stripStruct(data: Buffer, transportType?: TransportType, protocolType?: ProtocolType): Buffer;