/// import { Headers, URLFormatter } from '@rondo.dev/http-client'; import { Routes, Method } from '@rondo.dev/http-types'; import supertest from 'supertest'; declare type Omit = Pick>; interface Test extends Omit { } interface Response extends supertest.Response { body: R[P][M]['response']; header: { [key: string]: string; }; } interface Request extends Test, Promise> { send(value: R[P][M]['body'] | string): this; expect(status: number, body?: any): this; expect(body: string | RegExp | object | ((res: Response) => any)): this; expect(field: string, val: string | RegExp): this; } interface RequestOptions { params?: R[P][M]['params']; query?: R[P][M]['query']; } export declare class RequestTester { readonly app: Express.Application; readonly baseUrl: string; protected headers: Headers; protected formatter: URLFormatter; constructor(app: Express.Application, baseUrl?: string); setHeaders(headers: Headers): this; request(method: M, path: P, options?: RequestOptions): Request; get

(path: P, options?: RequestOptions): Request; post

(path: P, options?: RequestOptions): Request; put

(path: P, options?: RequestOptions): Request; delete

(path: P, options?: RequestOptions): Request; } export {}; //# sourceMappingURL=RequestTester.d.ts.map