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