import { n as tracing_channels_exports, t as Emitter } from "./emitter-BaiN6nb0.js";
import { RuntimeException } from "@poppinss/utils/exception";
var BaseEvent = class {
	constructor(..._) {}
	static emitter;
	static useEmitter(emitter) {
		this.emitter = emitter;
	}
	static async dispatch(...args) {
		if (!this.emitter) throw new RuntimeException(`Cannot dispatch "${this.name}" event. Make sure to pass emitter to the "BaseEvent" class for dispatch method to work`);
		return this.emitter.emit(this, new this(...args));
	}
};
export { BaseEvent, Emitter, tracing_channels_exports as tracingChannels };
