/** * @module net/packets/incoming */ import { Writer } from '../../writer'; import { Reader } from '../../reader'; import { PacketType } from '../../packet-type'; import { Packet } from '../../packet'; /** * Received when a chat message is sent by another player or NPC. */ export declare class TextPacket implements Packet { type: PacketType; propagate: boolean; /** * The sender of the message. */ name: string; /** * The object id of the sender. */ objectId: number; /** * The number of stars of the sender. */ numStars: number; /** * The length of time to display the chat bubble for. */ bubbleTime: number; /** * The recipient of the message. This is only used if the * message is a private message. */ recipient: string; /** * The content of the message. */ text: string; /** * > Unknown. */ cleanText: string; /** * Whether or not the sender of the message is a supporter. */ isSupporter: boolean; read(reader: Reader): void; write(writer: Writer): void; } //# sourceMappingURL=text-packet.d.ts.map