export type SourceType = 'client' | 'server';
export declare enum MessageEvent {
    'init' = 0,
    'close' = 1,
    'stop' = 2,
    'sendPerformanceData' = 3
}
export type perfProtocol = {
    event: 'init';
    data: {
        type: 'performance_analysis';
        version: string;
        AppVersion: string;
        platform: string;
        from: SourceType;
    };
} | {
    event: 'close';
    data: {
        from: SourceType;
    };
    code: string;
    message: string;
} | {
    event: 'sendPerformanceData';
    data: {
        data: any;
        total: number;
        index: number;
    };
};
