import { EventEmitter } from 'events';
export interface PerfettoServerStatus {
    running: boolean;
    port?: number;
    pid?: number;
    traceFile?: string;
    uptime?: number;
}
export declare class PerfettoLocalService extends EventEmitter {
    private process;
    private port;
    private traceProcessorPath;
    private currentTraceFile;
    private startTime;
    constructor();
    startServer(traceFile?: string): Promise<PerfettoServerStatus>;
    stopServer(): Promise<void>;
    loadTrace(traceFile: string): Promise<PerfettoServerStatus>;
    getStatus(): PerfettoServerStatus;
    private findAvailablePort;
    get getPort(): number;
    get getTraceProcessorUrl(): string;
}
export declare const perfettoLocalService: PerfettoLocalService;
//# sourceMappingURL=perfettoLocalService.d.ts.map