export type PackageTestDeclaration = import("@velocious/testing/runner").TestDeclaration; export type PackageTestErrorRecord = import("@velocious/testing/runner").TestErrorRecord; /** Stops package traversal after framework-owned connection quarantine. */ export declare class AbortRemainingTestsError extends Error { } export default class VelociousRunnerReporter { testRunner: import("./test-runner.js").default; /** @type {WeakMap} */ attemptConsoleOutputs: WeakMap; /** @type {PackageTestDeclaration | undefined} */ activeTest: PackageTestDeclaration | undefined; /** * Creates the legacy event and result projection adapter. * @param {object} args - Constructor arguments. * @param {import("./test-runner.js").default} args.testRunner - Owning Velocious runner. */ constructor({ testRunner, ...restArgs }: { testRunner: import("./test-runner.js").default; }); /** * Translates one awaited package runner event into the legacy contract. * @param {import("@velocious/testing/runner").RunnerEvent} event - Structured package event. * @returns {Promise} - Resolves after legacy listeners finish. */ onEvent(event: import("@velocious/testing/runner").RunnerEvent): Promise; /** * Projects attempt failure/retry events while retaining the raw thrown value. * @param {import("@velocious/testing/runner").RunnerEvent} event - Attempt event. * @returns {Promise} - Resolves after listeners finish. */ reportAttemptEvent(event: import("@velocious/testing/runner").RunnerEvent): Promise; /** * Projects final package result accounting and failures. * @param {import("@velocious/testing/runner").RunnerEvent} event - Test result event. * @returns {Promise} - Resolves after listeners finish. */ reportTestEvent(event: import("@velocious/testing/runner").RunnerEvent): Promise; /** * Records and emits one final failed test result. * @param {object} args - Final failure metadata. * @param {import("./test-runner.js").AttemptConsoleOutput[]} args.attemptConsoleOutputs - Captured output across attempts. * @param {string[]} args.descriptions - Parent description stack. * @param {ReturnType} args.error - Raw final failure. * @param {string} args.leftPadding - Console indentation. * @param {import("./test-runner.js").TestArgs} args.testArgs - Stable test arguments. * @param {import("./test-runner.js").TestData} args.testData - Test registration. * @param {string} args.testDescription - Test description. * @returns {Promise} - Resolves after the final-failure listener completes. */ reportFailedTest({ attemptConsoleOutputs, descriptions, error, leftPadding, testArgs, testData, testDescription }: { attemptConsoleOutputs: import("./test-runner.js").AttemptConsoleOutput[]; descriptions: string[]; error: ReturnType; leftPadding: string; testArgs: import("./test-runner.js").TestArgs; testData: import("./test-runner.js").TestData; testDescription: string; }): Promise; /** * Prints complete primary and secondary stacks once, including cyclic cause graphs. * @param {unknown} error - Thrown value at the reporting boundary. * @param {Set} [reported] - Error identities already printed. * @returns {void} */ printErrorCauses(error: unknown, reported?: Set): void; /** * Emits one legacy event and awaits listeners in registration order. * @param {string} eventName - Event name. * @param {object} payload - Event payload. * @returns {Promise} - Resolves when all listeners complete. */ emitEvent(eventName: string, payload: object): Promise; } //# sourceMappingURL=velocious-runner-reporter.d.ts.map