import { ValueKind, BrsString, BrsBoolean, BrsType, BrsValue } from "..";
import { BrsComponent } from "./BrsComponent";
import { BrsHttpAgent } from "../interfaces/IfHttpAgent";
export declare enum RequestState {
    Requested = 0,
    Downloading = 1,
    Downloaded = 2,
    Ready = 3,
    Failed = 4,
    Cancelled = 5
}
export declare class RoTextureRequest extends BrsComponent implements BrsValue, BrsHttpAgent {
    readonly kind = ValueKind.Object;
    readonly identity: number;
    uri: string;
    async: boolean;
    state: RequestState;
    scaleMode: number;
    size?: {
        width: number;
        height: number;
    };
    readonly customHeaders: Map<string, string>;
    cookiesEnabled: boolean;
    certificatesFile: string;
    constructor(uri: BrsString);
    toString(parent?: BrsType): string;
    equalTo(other: BrsType): BrsBoolean;
    /** Returns a unique id for the request. */
    private readonly getId;
    /** Returns the state of the request. */
    private readonly getState;
    /** Sets the request to be either asynchronous (true) or synchronous (false). */
    private readonly setAsync;
    /** Sets the desired size of the roBitmap. */
    private readonly setSize;
    /** Sets the scaling mode to be used. */
    private readonly setScaleMode;
}
