import EventEmitter from "events"; // import { Client } from "irc-framework" type Timestamp = `timestamp=${string}` | `msgid=${string}` | Date; type LatestTimestamp = "*" | Timestamp; declare module "irc-framework" { interface Client { chatHistory: { batches: Map>; addCallback: (id: number, callback: (data?: void | PromiseLike) => Promise) => void; async runCallback(id: number): void; async before(target: string, timestamp: Timestamp, limit: number): Promise; async after(target: string, timestamp: Timestamp, limit: number): Promise; async latest(target: string, timestamp: LatestTimestamp, limit: number): Promise; async around(target: string, timestamp: Timestamp, limit: number): Promise; async between(target: string, timestamp1: Timestamp, timestamp2: Timestamp, limit: number): Promise; async targets(timestamp1: Timestamp, timestamp2: Timestamp, limit: number): Promise; async targets(target: string, timestamp: Timestamp): Promise; } } }