import { Server } from 'http';
import { Context } from 'koa';
import { KoaNextFunction } from '../types';
export declare class TestRack {
    private servers;
    unmountAll(): void;
    mount(mountFunction: ({ port: number, ip: string }: {
        port: any;
        ip: any;
    }) => Server, options?: RequestInit): Promise<{
        request: () => Promise<Response>;
    }>;
}
export declare function mockMiddleware(_: Context, next: KoaNextFunction): Promise<void>;
