import type { _NSDictionary } from "./NSDictionary.js";
import type { _NSString } from "./NSString.js";
import type { _NSURL } from "./NSURL.js";
import type { _NSURLResponse } from "./NSURLResponse.js";
export declare class _NSHTTPURLResponse extends _NSURLResponse {
    static alloc(): _NSHTTPURLResponse;
    static new(): _NSHTTPURLResponse;
    init(): _NSHTTPURLResponse;
    /**
     * @method localizedStringForStatusCode: @abstract Convenience method which returns a localized string corresponding to the status code for this response. @param statusCode the status code to use to produce a localized string. @result A localized string corresponding to the given status code.
     */
    static localizedStringForStatusCode$(statusCode: number): _NSString;
    /**
     * @method initWithURL:statusCode:HTTPVersion:headerFields: @abstract initializer for NSHTTPURLResponse objects. @param url the URL from which the response was generated. @param statusCode an HTTP status code. @param HTTPVersion The version of the HTTP response as represented by the server. This is typically represented as "HTTP/1.1". @param headerFields A dictionary representing the header keys and values of the server response. @result the instance of the object, or NULL if an error occurred during initialization. @discussion This API was introduced in Mac OS X 10.7.2 and iOS 5.0 and is not available prior to those releases.
     */
    initWithURL$statusCode$HTTPVersion$headerFields$(url: _NSURL, statusCode: number, HTTPVersion: _NSString | null, headerFields: _NSDictionary | null): _NSHTTPURLResponse | null;
    /**
     * @method valueForHTTPHeaderField: @abstract Returns the value which corresponds to the given header field. Note that, in keeping with the HTTP RFC, HTTP header field names are case-insensitive. @param field the header field name to use for the lookup (case-insensitive). @result the value associated with the given header field, or nil if there is no value associated with the given header field.
     */
    valueForHTTPHeaderField$(field: _NSString): _NSString | null;
    /**
     * @abstract Returns the HTTP status code of the receiver. @result The HTTP status code of the receiver.
     */
    statusCode(): number;
    /**
     * @abstract Returns a dictionary containing all the HTTP header fields of the receiver. @discussion By examining this header dictionary, clients can see the "raw" header information which was reported to the protocol implementation by the HTTP server. This may be of use to sophisticated or special-purpose HTTP clients. @result A dictionary containing all the HTTP header fields of the receiver.
     */
    allHeaderFields(): _NSDictionary;
}
