import { ApplicationContract } from '@ioc:Adonis/Core/Application';
import { CustomServerCallback } from '@ioc:Adonis/Core/TestUtils';
/**
 * The test HTTP server to handle and serve HTTP request
 */
export declare class TestHttpServer {
    application: ApplicationContract;
    private server;
    constructor(application: ApplicationContract);
    /**
     * Creates the HTTP server to handle incoming requests. The server is just
     * created but not listening on any port.
     */
    private create;
    /**
     * Start the HTTP server to listen for incoming requests
     */
    private listen;
    /**
     * Close HTTP server from listening to any requests
     */
    close(): Promise<void>;
    /**
     * Start the test HTTP server
     */
    start(serverCallback?: CustomServerCallback): Promise<() => Promise<void>>;
}
