import { Callable } from "..";
/**
 * BrightScript Interface ifHttpAgent
 * https://developer.roku.com/docs/references/brightscript/interfaces/ifhttpagent.md
 */
export declare class IfHttpAgent {
    private readonly component;
    constructor(value: BrsHttpAgent);
    /** Add the specified HTTP header to the list of headers that will be sent in the HTTP request.
     *  If "x-roku-reserved-dev-id" is passed as a name, the value parameter is ignored and in its place,
     *  the devId of the currently running app is used as the value.
     */
    readonly addHeader: Callable;
    /** Each name/value in the passed AA is added as an HTTP header. */
    readonly setHeaders: Callable;
    /** Initialize the object to send the Roku client certificate. */
    readonly initClientCertificates: Callable;
    /** Set the certificates file used for SSL to the .pem/.crt file specified. */
    readonly setCertificatesFile: Callable;
    /** Sets the maximum depth of the certificate chain that will be accepted. */
    readonly setCertificatesDepth: Callable;
    /** Causes any Set-Cookie headers returned from the request to be interpreted. */
    readonly enableCookies: Callable;
    /** Returns any cookies from the cookie cache that match the specified domain and path. */
    readonly getCookies: Callable;
    /** Verifies that the certificate belongs to the host. */
    readonly addCookies: Callable;
    /** Removes all cookies from the cookie cache. */
    readonly clearCookies: Callable;
}
export interface BrsHttpAgent {
    readonly customHeaders: Map<string, string>;
    cookiesEnabled: boolean;
    certificatesFile: string;
}
export declare class HttpError extends Error {
    status: number;
    constructor(status: number, message?: string);
}
