//#region src/utils/hooks/syncHook.d.ts type Callback = (...args: ArgsType) => K; type ArgsType = T extends Array ? T : Array; declare class SyncHook { type: string; listeners: Set>; constructor(type?: string); on(fn: Callback): void; once(fn: Callback): void; emit(...data: ArgsType): void | K | Promise; remove(fn: Callback): void; removeAll(): void; } //#endregion export { ArgsType, SyncHook }; //# sourceMappingURL=syncHook.d.ts.map