import { FeedsEvent } from '../types';
export declare class EventDispatcher<Type extends string = FeedsEvent['type'], Event extends {
    type: string;
} = FeedsEvent> {
    private subscribers;
    private readonly logger;
    dispatch: (event: Event) => void;
    on: (eventName: Type | "all", handler: (event: Event) => void) => () => void;
    off: (eventName: Type | "all", handler: (event: Event) => void) => void;
    offAll: (eventName?: Type | "all") => void;
}
