/** * Logcat manager for the daemon process. * Manages adb logcat capture to timestamped files. */ export interface LogcatStatus { capturing: boolean; pid: number | null; file: string | null; size: string | null; } export declare class LogcatManager { private proc; private currentFile; private readonly serial; private readonly logDir; private readonly logfileLink; constructor(serial: string); /** Whether logcat is currently capturing */ get isCapturing(): boolean; /** Start logcat capture. Stops any previous capture first. */ start(filter?: string): Promise<{ file: string; pid: number; }>; /** Stop logcat capture */ stop(): void; /** Get capture status */ status(): LogcatStatus; /** Read tail of current logcat file (reads only the last chunk, not the entire file) */ readTail(lineCount?: number): string[]; /** Scan tail for crash patterns, optionally scoped to a package name */ scanForCrash(lineCount?: number, packageName?: string): { crashed: boolean; lines: string[]; reason?: string; matchedLine?: string; matchedPattern?: string; }; /** Cleanup: stop capture */ cleanup(): void; private getFileStats; } //# sourceMappingURL=logcat-manager.d.ts.map