vban
Version:
Node VBAN implementation
11 lines (10 loc) • 561 B
TypeScript
import { Buffer } from 'node:buffer';
import type { VBANPacketConstructorsTypes, VBANPacketTypes } from './packets/index.js';
import { ESubProtocol, VBANPacket, VBANServicePacketFactory } from './packets/index.js';
type constructorsTypes = VBANPacketConstructorsTypes | typeof VBANServicePacketFactory;
export declare class VBANProtocolFactory {
static processPacket(packet: Buffer): VBANPacketTypes;
static getConstructor(protocol: ESubProtocol): constructorsTypes;
static toUDPBuffer(packet: Pick<VBANPacket, 'subProtocol'>): Buffer;
}
export {};