import { default as BinaryStream } from '../../../../jsbinaryutils/src/index.ts';
/**
 * The base class for all packets.
 * @class
 * @public
 */
export default class DataPacket extends BinaryStream {
    /**
     * The packet's network ID.
     */
    static NetID: number;
    private encoded;
    private senderSubId;
    private receiverSubId;
    constructor(buffer?: Buffer);
    getBuffer(): Buffer;
    getId(): number;
    getEncoded(): boolean;
    /**
     * Get the DataPacket's name.
     *
     * @returns The packet's name
     */
    getName(): string;
    decode(): void;
    decodeHeader(): void;
    /**
     * Decode the packet from a network serialized buffer.
     */
    decodePayload(): void;
    encode(): void;
    encodeHeader(): void;
    /**
     * Encode the packet to a network serialized buffer.
     */
    encodePayload(): void;
    getAllowBatching(): boolean;
}
//# sourceMappingURL=DataPacket.d.ts.map