import type Hooks from '@poppinss/hooks'; import { type Test } from './main.ts'; import { type Emitter } from '../emitter.ts'; import type { TestEndNode, TestHooks } from '../types.ts'; /** * Dummy test runner that just emits the required events */ export declare class DummyRunner { #private; /** * Know if the test has failed */ get failed(): boolean; constructor(test: Test, emitter: Emitter); /** * Run test */ run(): void; } /** * Run an instance of test */ export declare class TestRunner { #private; /** * Know if the test has failed */ get failed(): boolean; constructor(test: Test, hooks: Hooks>>, emitter: Emitter, callbacks: { executing: ((test: Test) => void)[]; executed: ((test: Test, hasError: boolean, errors: TestEndNode['errors']) => void)[]; }, debuggingError: Error | null, datasetCurrentIndex?: number); /** * Reset test timeout. The timeout will be removed, if * no duration value is provided */ resetTimeout(duration?: number): void; /** * Run the test */ run(): Promise; }