import { BaseEvent } from "./Events.js";
import { AgentDependencies } from "./AgentDependencies.js";
import { AgentContext } from "./context/AgentContext.js";
import * as rxjs0 from "rxjs";
import { Subject } from "rxjs";

//#region src/agent/EventEmitter.d.ts
type EmitEvent<T extends BaseEvent> = Omit<T, 'metadata'>;
declare class EventEmitter {
  private eventEmitter;
  private stop$;
  constructor(agentDependencies: AgentDependencies, stop$: Subject<boolean>);
  emit<T extends BaseEvent>(agentContext: AgentContext, data: EmitEvent<T>): void;
  on<T extends BaseEvent>(event: T['type'], listener: (data: T) => void | Promise<void>): void;
  off<T extends BaseEvent>(event: T['type'], listener: (data: T) => void | Promise<void>): void;
  observable<T extends BaseEvent>(event: T['type']): rxjs0.Observable<T>;
}
//#endregion
export { EventEmitter };
//# sourceMappingURL=EventEmitter.d.ts.map