/** * @module net */ import { PacketType } from './packet-type'; import { Packet } from './packet'; /** * A static utility class for creating packet objects from a `PacketType`. */ export declare class Packets { /** * Creates the correct packet object for the given type. * @param type The type of packet to create. * @throws {Error} if the packet cannot be created. */ static create(type: PacketType): Packet; } //# sourceMappingURL=packets.d.ts.map