import { Dictionary, WithThisType } from './types'; export declare type EventCallbackSingleParam = EvtParam extends any ? (params: EvtParam) => boolean | void : never; export declare type EventCallback = EvtParams extends any[] ? (...args: EvtParams) => boolean | void : never; export declare type EventQuery = string | Object; declare type CbThis = unknown extends Ctx ? Impl : Ctx; declare type DefaultEventDefinition = Dictionary>; export interface EventProcessor { normalizeQuery?: (query: EventQuery) => EventQuery; filter?: (eventType: keyof EvtDef, query: EventQuery) => boolean; afterTrigger?: (eventType: keyof EvtDef) => void; } export default class Eventful { private _$handlers; protected _$eventProcessor: EventProcessor; constructor(eventProcessors?: EventProcessor); on(event: EvtNm, handler: WithThisType>, context?: Ctx): this; on(event: EvtNm, query: EventQuery, handler: WithThisType>, context?: Ctx): this; isSilent(eventName: keyof EvtDef): boolean; off(eventType?: keyof EvtDef, handler?: Function): this; trigger(eventType: EvtNm, ...args: Parameters): this; triggerWithContext(type: keyof EvtDef, ...args: any[]): this; } export {};