import { ValueKind, BrsBoolean, BrsType, BrsValue, RoTextureRequest, RoBitmap } from "..";
import { BrsComponent } from "./BrsComponent";
import { BrsHttpAgent } from "../interfaces/IfHttpAgent";
export declare class RoTextureManager extends BrsComponent implements BrsValue, BrsHttpAgent {
    readonly kind = ValueKind.Object;
    private readonly textures;
    readonly requests: Map<number, RoTextureRequest>;
    private port?;
    readonly customHeaders: Map<string, string>;
    cookiesEnabled: boolean;
    certificatesFile: string;
    constructor();
    toString(parent?: BrsType): string;
    equalTo(other: BrsType): BrsBoolean;
    count(): number;
    dispose(): void;
    private getNewEvents;
    private createEvent;
    loadTexture(uri: string, headers?: Map<string, string>): RoBitmap | undefined;
    resizeTexture(bitmap: RoBitmap, width: number, height: number): RoBitmap;
    private loadLocalFile;
    /** Makes a request for an roBitmap with the attributes specified by the roTextureRequest. */
    private readonly requestTexture;
    /** Cancels the request specified by req, which should be an roTextureRequest previously passed to the RequestTexture() method. */
    private readonly cancelRequest;
    /** Removes a bitmap from the roTextureManager with the specified URL. */
    private readonly unloadBitmap;
    /** Removes all bitmaps from the roTextureManager. */
    private readonly cleanup;
}
export declare function getTextureManager(): RoTextureManager;
