forked from keinBot/cuffeo
-.-
This commit is contained in:
20
dist/index.d.ts
vendored
Normal file
20
dist/index.d.ts
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import EventEmitter from "node:events";
|
||||
interface Config {
|
||||
enabled: boolean;
|
||||
type: string;
|
||||
network: string;
|
||||
}
|
||||
interface CuffeoEvents {
|
||||
data: [string, any];
|
||||
error: [Error];
|
||||
}
|
||||
export default class Cuffeo extends EventEmitter {
|
||||
private clients;
|
||||
private libs;
|
||||
emit<K extends keyof CuffeoEvents>(event: K, ...args: CuffeoEvents[K]): boolean;
|
||||
on<K extends keyof CuffeoEvents>(event: K, listener: (...args: CuffeoEvents[K]) => void): this;
|
||||
constructor(cfg: Config[]);
|
||||
private loadLibs;
|
||||
private registerClients;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user