import type { RunnerTestFile, TestAnnotation, UserConsoleLog } from "vitest"; import type { Reporter, SerializedError, TestCase, TestModule, TestRunEndReason, TestSuite, Vitest } from "vitest/node"; import type { Evalite } from "./types.js"; export interface EvaliteReporterOptions { isWatching: boolean; port: number; logNewState: (event: Evalite.ServerState) => void; storage: Evalite.Storage; scoreThreshold: number | undefined; modifyExitCode: (exitCode: number) => void; mode: "watch-for-file-changes" | "run-once-and-exit" | "run-once-and-serve"; hideTable?: boolean; } export default class EvaliteReporter implements Reporter { private opts; private runner; private ctx; private start; constructor(opts: EvaliteReporterOptions); onInit(ctx: Vitest): void; onWatcherStart(files?: RunnerTestFile[], errors?: unknown[]): void; private shouldLog; private getFullName; onUserConsoleLog(log: UserConsoleLog, taskState?: "passed" | "failed" | "skipped" | "pending"): void; onWatcherRerun(files: string[], trigger?: string): void; onTestRunEnd: (testModules: ReadonlyArray, unhandledErrors: ReadonlyArray, reason: TestRunEndReason) => Promise; private customTestSummary; onTestSuiteReady(testSuite: TestSuite): void; onTestSuiteResult(testSuite: TestSuite): void; onTestCaseAnnotate(testCase: TestCase, annotation: TestAnnotation): void; onTestModuleCollected(mod: TestModule): void; onTestModuleStart(mod: TestModule): void; onTestCaseResult(test: TestCase): void; protected printAnnotations(_test: TestCase, _console: "log" | "error", _padding?: number): void; onTestModuleEnd(mod: TestModule): void; } //# sourceMappingURL=reporter.d.ts.map