/** * Platform-specific performance metric collection. * * All ADB shell commands are hardcoded strings — user input (package names) * is validated via validatePackageName() before interpolation. */ import type { AdbClient } from "../adb/client.js"; import type { DesktopClient } from "../desktop/client.js"; import type { PerfSnapshot, CrashEntry } from "./types.js"; declare function parseMemoryFromDumpsys(output: string): { usedMb: number; totalMb: number; } | null; declare function parseCpuFromDumpsys(output: string, packageName: string): { appPercent: number; } | null; declare function parseFpsFromGfxinfo(output: string): { current: number; jankyFrames?: number; totalFrames?: number; } | null; declare function parseBatteryFromDumpsys(output: string): { level: number; temperature?: number; charging: boolean; } | null; declare function parseCrashesFromLogcat(output: string): CrashEntry[]; /** * Detect foreground package from Android device. */ export declare function detectForegroundPackage(adb: AdbClient): string | undefined; /** * Collect performance snapshot from Android device. */ export declare function collectAndroidSnapshot(adb: AdbClient, packageName: string): PerfSnapshot; /** * Collect performance snapshot from Desktop client. */ export declare function collectDesktopSnapshot(desktop: DesktopClient): Promise; /** * Collect performance snapshot for iOS (very limited). */ export declare function collectIosSnapshot(): PerfSnapshot; export { parseMemoryFromDumpsys, parseCpuFromDumpsys, parseFpsFromGfxinfo, parseBatteryFromDumpsys, parseCrashesFromLogcat, }; //# sourceMappingURL=collector.d.ts.map