///
import { Parser } from 'binary-parser';
import * as dgram from 'dgram';
import { EventEmitter } from 'events';
import * as constants from './constants';
import * as constantsTypes from './constants/types';
import { PacketCarSetupDataParser, PacketCarStatusDataParser, PacketCarTelemetryDataParser, PacketEventDataParser, PacketFinalClassificationDataParser, PacketLapDataParser, PacketLobbyInfoDataParser, PacketMotionDataParser, PacketParticipantsDataParser, PacketSessionDataParser } from './parsers/packets';
import * as packetTypes from './parsers/packets/types';
import { Address, Options, ParsedMessage } from './types';
declare const DEFAULT_PORT = 20777;
declare const FORWARD_ADDRESSES: undefined;
declare const BIGINT_ENABLED = true;
/**
*
*/
declare class F1TelemetryClient extends EventEmitter {
port: number;
bigintEnabled: boolean;
forwardAddresses?: Address[];
socket?: dgram.Socket;
constructor(opts?: Options);
/**
*
* @param {Buffer} message
*/
static parseBufferMessage(message: Buffer, bigintEnabled?: boolean): ParsedMessage | undefined;
/**
*
* @param {Buffer} buffer
* @param {Boolean} bigIntEnabled
*/
static parsePacketHeader(buffer: Buffer, bigintEnabled: boolean): Parser.Parsed;
/**
*
* @param {Number} packetFormat
* @param {Number} packetId
*/
static getPacketSize(packetFormat: number, packetId: number): number;
/**
*
* @param {Number} packetId
*/
static getParserByPacketId(packetId: number): typeof PacketCarSetupDataParser | typeof PacketCarStatusDataParser | typeof PacketCarTelemetryDataParser | typeof PacketEventDataParser | typeof PacketFinalClassificationDataParser | typeof PacketLapDataParser | typeof PacketLobbyInfoDataParser | typeof PacketMotionDataParser | typeof PacketParticipantsDataParser | typeof PacketSessionDataParser | null;
/**
*
* @param {Buffer} message
*/
handleMessage(message: Buffer): void;
/**
*
* @param {Buffer} message
*/
bridgeMessage(message: Buffer): void;
/**
* Method to start listening for packets
*/
start(): void;
/**
* Method to close the client
*/
stop(): void;
}
export { F1TelemetryClient, constants, constantsTypes, packetTypes, DEFAULT_PORT, BIGINT_ENABLED, FORWARD_ADDRESSES, };