import { AttachmentBuilder, InteractionEditReplyOptions, Message, MessageEditOptions, MessagePayload, User, } from 'discord.js'; import { EventEmitter } from 'node:events'; import { BaseConstructorOptions, ButtonStyle, DeepRequired, MessageType, Position } from './Base'; export interface TwoZeroFourEightConstructorOptions extends BaseConstructorOptions { embed?: { title?: string; color?: string; }; emojis?: { up?: string; down?: string; left?: string; right?: string; }; timeoutTime?: number; buttonStyle?: ButtonStyle; } export class TwoZeroFourEight extends EventEmitter { options: DeepRequired>; message: MessageType; gameBoard: string[]; mergedPos: Position[]; length: number; score: number; on(eventName: 'gameOver', listener: (result: { result: 'win' | 'lose'; player: User; score: number }) => void): this; once(...args: Parameters): this; constructor(options: TwoZeroFourEightConstructorOptions); sendMessage( content: string | MessagePayload | (IsSlashGame extends true ? InteractionEditReplyOptions : MessageEditOptions) ): Promise; getBoardImage(): Promise; // There is literally no reason to make this asynchronous startGame(): Promise; placeRandomTile(): void; handleButtons(msg: Message): void; gameOver(msg: Message): Promise; isGameOver(): boolean; shiftVertical(dir: 'up' | 'down'): boolean; shiftHorizontal(dir: 'left' | 'right'): boolean; isInsideBlock(pos: Position): boolean; shift(pos: Position, dir: 'up' | 'down' | 'left' | 'right'): boolean; }