import type { Script, Session } from "frida"; import { type BaselineComparison, type BaselineFile, type Environment } from "./baseline.js"; export declare function toProjectRelative(file: string | undefined): string | undefined; export type TestStatus = "passed" | "failed" | "timeout" | "crashed" | "skipped" | "incomplete"; export interface TestError { name: string; message: string; stack?: string; expected?: string; actual?: string; } export interface BenchSamples { iterations: number; tickUs: number; wallUs: number[]; userUs?: number[]; counters: Record; } export interface TestResult { index: number; id?: string; name: string; durationMs: number; status: TestStatus; file?: string; line?: number; error?: TestError; kind?: "test" | "bench"; bench?: BenchSamples; baseline?: BaselineComparison; } export type Reporter = "pretty" | "json"; export interface BaselineOptions { file: BaselineFile; runtime: string; machine: string; timeFactor: number; } export interface TestMeta { id?: string; name?: string; file?: string; line?: number; kind?: "test" | "bench"; } export interface RunOptions { timeoutMs: number; grep?: string; reporter?: Reporter; only?: number[]; metaByIndex?: Map; onResume?: () => Promise; baseline?: BaselineOptions; onEnvironment?: (env: Environment) => void; } export declare function runSuite(script: Script, session: Session, opts: RunOptions): Promise; export declare function reportResult(r: TestResult, reporter: Reporter): void; export interface OutputRecord { level: string; text: string; name?: string; file?: string; line?: number; } export declare function reportOutput(o: OutputRecord, reporter: Reporter): void; export declare function summarize(results: TestResult[], reporter?: Reporter): { passed: number; failed: number; }; //# sourceMappingURL=run.d.ts.map