import { Message, ErrorMessage } from './interfaces';
export interface Callback {
    id: number | string;
    callback: (id: string, message: Message<any>, userData: any) => any;
    userData: any;
}
export declare class CallbackManager {
    private callbacks;
    private uniqueId;
    private maxReservedId;
    constructor();
    get uniqueIdValue(): number;
    static normaliseId(id: number | string): number | string;
    addHandler(id: number | string, callback: (id: number | string, message: Message<any> | ErrorMessage, userData: any) => any, userData?: any): string | number;
    removeHandler(id: any, callBack: any): number;
    removeAllHandlers(id: any): number;
    handleEvent(id: any, eventData: any): number;
}
