import { LogService } from '../../../../foundation/service/log';
export declare class EventCenter {
    private activeEvents;
    private heartbeatIntervalId;
    private readonly HEARTBEAT_INTERVAL;
    private uniqueId;
    private readonly logger;
    constructor({ logger }: {
        logger: LogService;
    });
    /**
     * 注册事件
     * @param {string} functionName 函数名称
     * @returns {string} 返回事件起始ID
     */
    registerEvent(functionName: string, sessionData?: string): string;
    /**
     * 结束事件
     * @param startId 事件起始ID
     * @returns
     */
    endEvent(startId: string, extra?: any): void;
    /**
     * Cancels a single active event and reports it as an ended event with canceled=true.
     * This is used when the mount flow is terminated early (for example, on destroy or abnormal exit).
     */
    cancelEvent(startId: string, extra?: any): void;
    /**
     * Cancels all active events whose event id starts with the given prefix.
     * For example, prefix 'mount' will cancel events like mount_1_start.
     */
    cancelByPrefix(prefix: string, extra?: any): void;
    private startHeartbeat;
    private stopHeartbeat;
    private sendHeartbeat;
    private sendLog;
    private buildId;
    private getEventName;
    private buildIdFromStart;
    private getEventNameFromStart;
}
