1
0
forked from keinBot/cuffeo
This commit is contained in:
2025-03-19 12:54:12 +01:00
parent 90f43a734e
commit 62f45722c4
17 changed files with 228 additions and 1 deletions

20
dist/index.d.ts vendored Normal file
View 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 {};