6de2455917
- Added GLOBAL_MARKETS_TITLE to all translation files - Updated footer with 12 markets (4 active + 8 upcoming) - Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi - Built and deployed to production - CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
23 lines
583 B
TypeScript
23 lines
583 B
TypeScript
import { TransformOptions } from 'stream';
|
|
import { Mode, BackendMessage } from './messages';
|
|
export type Packet = {
|
|
code: number;
|
|
packet: Buffer;
|
|
};
|
|
type StreamOptions = TransformOptions & {
|
|
mode: Mode;
|
|
};
|
|
export type MessageCallback = (msg: BackendMessage) => void;
|
|
export declare class Parser {
|
|
private buffer;
|
|
private bufferLength;
|
|
private bufferOffset;
|
|
private reader;
|
|
private mode;
|
|
constructor(opts?: StreamOptions);
|
|
parse(buffer: Buffer, callback: MessageCallback): void;
|
|
private mergeBuffer;
|
|
private handlePacket;
|
|
}
|
|
export {};
|