import { CBTextureLoadError } from "./CBTextureLoader"; import * as THREE from "three"; import { CanvasContext } from "react-three-fiber"; export declare class CBMaterialProperties { readonly ppi: number; readonly diffuseUrl: string; readonly normalsUrl?: string | undefined; readonly specularUrl?: string | undefined; constructor(ppi: number, diffuseUrl: string, normalsUrl?: string | undefined, specularUrl?: string | undefined); } export declare class CBMaterial { readonly props: CBMaterialProperties; readonly canvasID: string; readonly context: CanvasContext; swapOffscreen: boolean; private readonly _diffuseLoader; private readonly _normalsLoader; private readonly _specularLoader; constructor(props: CBMaterialProperties, canvasID: string, context: CanvasContext, swapOffscreen?: boolean); width: number; height: number; private _numNotLoaded; diffuseTexture: THREE.Texture | null; normalsTexture: THREE.Texture | null; specularTexture: THREE.Texture | null; load(onLoad: () => void, onError: (event: CBTextureLoadError) => void): void; private maybeOnLoad; dispose(): void; }