///
import { BiffParser } from '../io/biff-parser';
import { Storage } from '../io/ole-doc';
import { ITextureLoader } from '../render/irender-api';
import { Binary } from './binary';
import { Table } from './table/table';
/**
* VPinball's texture.
*
* These are read from the "Image*" storage items.
*
* @see https://github.com/vpinball/vpinball/blob/master/Texture.cpp
*/
export declare class Texture extends BiffParser {
localFileName?: string;
storageName?: string;
szName: string;
szInternalName: string;
szPath?: string;
width: number;
height: number;
alphaTestValue?: number;
binary?: Binary;
pdsBuffer?: BaseTexture;
private rgbTransparent;
private constructor();
static fromStorage(storage: Storage, itemName: string): Promise;
static fromFilesystem(resFileName: string): Texture;
private static createStreamHandler;
getName(): string;
/**
* Loads the texture for the given renderer.
* @param table
* @param loader
*/
loadTexture(loader: ITextureLoader, table: Table): Promise;
isRaw(): boolean;
isHdr(): boolean | undefined;
private streamImage;
private fromTag;
}
declare class BaseTexture {
static readonly RGBA = 0;
static readonly RGB_FP = 1;
private width;
private height;
format: number;
private data;
constructor(width: number, height: number);
getData(): Buffer;
static get(storage: Storage, itemName: string, pos: number, width: number, height: number): Promise<[BaseTexture, number]>;
private rgbToBgr;
private pitch;
}
export {};