import type { Evalite } from "../types.js"; export type ReporterEvent = { type: "RUN_BEGUN"; filepaths: string[]; runType: Evalite.RunType; } | { type: "RUN_ENDED"; } | { type: "RESULT_SUBMITTED"; result: Evalite.Result; } | { type: "RESULT_STARTED"; initialResult: Evalite.InitialResult; }; /** * Annotation events that can be sent from tests to the reporter via test.annotate() */ export type EvaliteAnnotation = { type: "RESULT_STARTED"; initialResult: Evalite.InitialResult; } | { type: "RESULT_SUBMITTED"; result: Evalite.Result; }; /** * Type-safe serialization of annotation events for test.annotate() */ export declare function serializeAnnotation(annotation: EvaliteAnnotation): string; /** * Type-safe deserialization of annotation events from test annotations * Returns null if the message is not a valid EvaliteAnnotation */ export declare function deserializeAnnotation(message: string): EvaliteAnnotation | null; //# sourceMappingURL=events.d.ts.map