///
import { EmscriptenGL } from '../types';
export declare class NativeImage {
static createFromBytes(bytes: ArrayBuffer): Promise;
static createFromPath(path: string): Promise;
protected source: TexImageSource | OffscreenCanvas;
protected reuse: boolean;
constructor(source: TexImageSource | OffscreenCanvas, reuse?: boolean);
width(): number;
height(): number;
upload(GL: EmscriptenGL): void;
onDestroy(): void;
}