import { BaseJson } from '../../component/type'; import { AmbientJson } from './ambient/index'; import { DirectionJson } from './direction/index'; import { PointJson } from './point/index'; import { RectJson } from './rect/index'; import { SpotJson } from './spot/index'; import { createLight } from './util'; interface BaseLightJson { type: string; color: number; intensity: number; } interface ShadowJson { mapSize: { width: number; height: number; }; camera: { near: number; far: number; left: number; right: number; top: number; bottom: number; }; } declare type Lighttype = AmbientJson | DirectionJson | PointJson | RectJson | SpotJson; interface LightJson extends BaseJson { type: 'Light'; light: T; } declare type renderLight = ReturnType; export { BaseLightJson, ShadowJson, Lighttype, LightJson, renderLight };