/** SuperAgent / Supertest response shape used by {@link TestResponse}. */ export interface RawHttpResponse { status: number; headers: Record; body: unknown; text?: string; } /** * Fluent assertions for an HTTP response produced by {@link TestClient}. */ export declare class TestResponse { private readonly res; /** * @param res - SuperAgent / Supertest response. */ constructor(res: RawHttpResponse); /** HTTP status code. */ get statusCode(): number; /** Normalized lower-case header map (first value per key). */ get headers(): Record; /** Raw body string when not JSON. */ get body(): string; /** Parsed JSON (SuperAgent sets `body` for JSON responses). */ json(): T; /** Response text (alias of raw body). */ text(): string; /** * First header value for a name (case-insensitive). * * @param name - Header name. * @returns Value or undefined. */ header(name: string): string | undefined; /** @inheritdoc */ assertStatus(expected: number): this; /** @inheritdoc */ assertOk(): this; /** @inheritdoc */ assertCreated(): this; /** @inheritdoc */ assertAccepted(): this; /** @inheritdoc */ assertNoContent(status?: number): this; /** @inheritdoc */ assertMovedPermanently(): this; /** @inheritdoc */ assertFound(): this; /** @inheritdoc */ assertNotModified(): this; /** @inheritdoc */ assertBadRequest(): this; /** @inheritdoc */ assertUnauthorized(): this; /** @inheritdoc */ assertPaymentRequired(): this; /** @inheritdoc */ assertForbidden(): this; /** @inheritdoc */ assertNotFound(): this; /** @inheritdoc */ assertMethodNotAllowed(): this; /** @inheritdoc */ assertConflict(): this; /** @inheritdoc */ assertUnprocessable(): this; /** @inheritdoc */ assertTooManyRequests(): this; /** @inheritdoc */ assertServerError(): this; /** @inheritdoc */ assertServiceUnavailable(): this; /** @inheritdoc */ assertSuccessful(): this; /** @inheritdoc */ assertRedirect(uri?: string): this; /** @inheritdoc */ assertJson(expected: Record): this; /** @inheritdoc */ assertExactJson(expected: Record): this; /** @inheritdoc */ assertJsonPath(path: string, expected: unknown): this; /** @inheritdoc */ assertJsonCount(path: string, count: number): this; /** @inheritdoc */ assertJsonStructure(_structure: unknown[]): this; /** @inheritdoc */ assertJsonMissing(data: Record): this; /** @inheritdoc */ assertJsonMissingExact(data: Record): this; /** @inheritdoc */ assertJsonValidationErrors(fields: string | string[]): this; /** @inheritdoc */ assertJsonMissingValidationErrors(fields: string | string[]): this; /** @inheritdoc */ assertHeader(name: string, value?: string | RegExp): this; /** @inheritdoc */ assertHeaderMissing(name: string): this; /** @inheritdoc */ assertLocation(uri: string): this; /** @inheritdoc */ assertCookie(_name: string, _value?: string): this; /** @inheritdoc */ assertCookieMissing(_name: string): this; /** @inheritdoc */ assertCookieExpired(_name: string): this; /** @inheritdoc */ assertSee(text: string): this; /** @inheritdoc */ assertDontSee(text: string): this; /** @inheritdoc */ assertSeeInOrder(texts: string[]): this; /** @inheritdoc */ assertDownload(_filename?: string): this; /** @inheritdoc */ dump(): this; /** @inheritdoc */ dumpHeaders(): this; /** @inheritdoc */ dumpStatus(): this; } //# sourceMappingURL=TestResponse.d.ts.map