import { IAsset, ParserBase } from '@awayjs/core';
import { IImageFactory } from '../factories/IImageFactory';
export declare class Image2DParser extends ParserBase {
    static SUPPORTED_TYPES: string[];
    private _factory;
    private _alphaChannel;
    /**
     * Creates a new Image2DParser object.
     * @param uri The url or id of the data or file to be parsed.
     * @param extra The holder for extra contextual data that the parser might need.
     */
    constructor(factory?: IImageFactory, alphaChannel?: Uint8Array);
    /**
     * Indicates whether or not a given file extension is supported by the parser.
     * @param extension The file extension of a potential file to be parsed.
     * @return Whether or not the given file type is supported.
     */
    static supportsType(extension: string): boolean;
    /**
     * Tests whether a data block can be parsed by the parser.
     * @param data The data block to potentially be parsed.
     * @return Whether or not the given data is supported.
     */
    static supportsData(data: any): boolean;
    protected finalizeAsset(asset: IAsset, fileName: string): void;
    /**
     * @inheritDoc
     */
    protected proceedParsing(): void;
    private _finalizeAssetFromImage;
}
//# sourceMappingURL=Image2DParser.d.ts.map