import { type Ignitor } from './main.ts'; import type { ApplicationService } from '../types.ts'; /** * The Test runner process is used to start the tests runner process. * It provides lifecycle hooks for configuring the test environment * and running tests within the AdonisJS application context. * * @example * const ignitor = new Ignitor() * const testProcess = new TestRunnerProcess(ignitor) * * await testProcess * .configure((app) => { * // Configure test environment * }) * .run(async (app) => { * // Run your tests * }) */ export declare class TestRunnerProcess { #private; /** * Creates a new test runner process instance * * @param ignitor - The ignitor instance used to create and manage the app */ constructor(ignitor: Ignitor); /** * Register a callback that runs after booting the AdonisJS app * and just before the provider's ready hook * * @param callback - Configuration callback function */ configure(callback: (app: ApplicationService) => Promise | void): this; /** * Runs a callback after starting the app * * @param callback - Test execution callback function */ run(callback: (app: ApplicationService) => Promise | void): Promise; }