export interface ISubscriber { (payload: Payload): void | boolean; } export declare class Subscribable { private subscribers; dispatch(event: T, context?: any): boolean; subscribe(subscriber: ISubscriber): () => void; unsubscribe: (id?: number | string | (() => void)) => void; }