import { PlayerData } from "@skeldjs/core";
import { Color } from "@skeldjs/constant";
export declare enum MessageSide {
Left = 0,
Right = 1
}
/**
* Options regarding sending a chat message into the room as the server, see
* {@link Room.sendChat}
*/
export interface SendChatOptions {
/**
* The side of the chat box for the message to appear on for each player. Can only
* send on the left side if there are at least 2 players in the room.
* @example
* ```ts
* room.sendChat("Slide to the left", {
* side: MessageSide.Left
* });
*
* room.sendChat("Slide to the right", {
* side: MessageSide.Right
* });
* ```
*/
side: MessageSide;
/**
* The player to send the message to, if omitted, sends to all players.
* @example
* ```ts
* // Alert the host of a hacker
* .@EventListener("anticheat.potential")
* onPotentialCheater(ev: AnticheatPotentialEvent) {
* if (!ev.player.info)
* return;
*
* ev.room.sendChat("Potential cheater detected: " + ev.player.info.name + "", {
* targets: [ ev.room.host ]
* });
* }
* ```
*/
targets: PlayerData[] | undefined;
/**
* The name of the player to appear as.
* @example
* ```ts
* ev.room.sendChat("i am the impostor", {
* name: "The Impostor",
* color: Color.Red
* });
* ```
*/
name: string;
/**
* The color of the player to appear as.
* @example
* ```ts
* ev.room.sendChat("i am the impostor", {
* name: "The Impostor",
* color: Color.Red
* });
* ```
*/
color: Color;
/**
* The skin that the player should be wearing in the chat message.
* @example
* ```ts
* ev.room.sendChat("looking for salvation in a secular age", {
* name: "the 1975",
* skinId: Skin.Prisoner
* })
* ```
*/
skinId: string;
/**
* The hat that the player should be wearing in the chat message.
* @example
* ```ts
* ev.room.sendChat("I'm a cowboy baby", {
* name: "Cowboy",
* hatId: Hat.TenGallonHat
* })
* ```
*/
hatId: string;
/**
* The visor that the player should be wearing in the chat message.
* @example
* ```ts
* ev.room.sendChat("wondering how I got this far", {
* name: "scruffpuppie",
* visorId: Hat.PolusIce
* })
* ```
*/
visorId: string;
}