import { Layer } from "../layer/layer"; import * as animation from "./animation"; import { Canvas } from "./canvas"; import { ViewFactory } from "./view_factory"; import EventEmitter from "wolfy87-eventemitter"; export declare class Globe { readonly gl: WebGLRenderingContext; readonly ee: EventEmitter; readonly viewFactory: ViewFactory; readonly canvas: Canvas; private el?; private readonly layers; private rafId?; private animationManager; private layerSortFunc?; constructor(el?: HTMLElement, defaultLayers?: boolean, preserveBuffer?: boolean); mount(el: HTMLElement): void; unmount(): void; release(): void; resize(): void; setSize(w: number, h: number): void; addLayer(layer: Layer): void; removeLayer(layer: Layer): void; requestRefresh(): void; animation(cb: (args: animation.ICallbackArgs) => void, options?: animation.IAnimationArgs): animation.Animation; stopCameraMotion(): void; setLayerSortFunc(f?: (a: Layer, b: Layer) => number): void; eachLayer(cb: (l: Layer) => void): void; private draw; private initDefaultLayers; private sortLayers; }