import * as THREE from "three"; import { CBTextureLoadError } from "./CBTextureLoader"; import { SuperpixelData } from "./CBTypes"; import { CanvasContext } from "react-three-fiber"; export declare class CBSceneProperties { readonly backgroundUrl: string; readonly lightingUrl?: string | undefined; readonly superpixelsUrl?: string | undefined; masks?: { [type: string]: string; } | undefined; anchorPoint?: [number, number] | undefined; constructor(backgroundUrl: string, lightingUrl?: string | undefined, superpixelsUrl?: string | undefined, masks?: { [type: string]: string; } | undefined, anchorPoint?: [number, number] | undefined); } export declare class CBSuperpixelsImage { readonly canvas: HTMLCanvasElement; readonly labels: { [label: string]: SuperpixelData; }; constructor(img: HTMLImageElement); dispose(): void; } export declare class CBMask { memoryCanvas: HTMLCanvasElement; readonly maskTexture: THREE.CanvasTexture; constructor(img: HTMLImageElement); dispose(): void; } export declare class CBScene { readonly props: CBSceneProperties; readonly context: CanvasContext; width: number; height: number; backgroundTexture?: THREE.Texture | undefined; lightingTexture?: THREE.Texture | undefined; superpixels?: CBSuperpixelsImage | undefined; masks: Array; private _numNeedLoading; constructor(props: CBSceneProperties, context: CanvasContext); load(onLoad: () => void, onError: (event: CBTextureLoadError) => void): void; private loadImage; private loadTexture; dispose(): void; }