export declare class AppEvent<T = any> {
    code: string;
    params: T;
    constructor(code: string, params?: T);
    static ANY: string;
    static SUBMIT_START: string;
    static SUBMIT_END: string;
    static LOGIN_SUCCESS: string;
    static LOGIN_FAILED: string;
    static LOGOUT_SUCCESS: string;
    static LOGOUT_FAILED: string;
    static INVALID_TOKEN: string;
    static APPLICATION_READY: string;
    static MENU_BUTTON_CLICK: string;
    static RIGHT_PANEL_CLOSE: string;
}
export interface EventHandler {
    (event: AppEvent): void;
}
export declare class ErrorEvent {
    code: string;
    error: string;
}
export interface ErrorHandler {
    (event: ErrorEvent): void;
}
