/**
 * Flowtype definitions for goong
 * Generated by Flowgen from a Typescript Definition
 * Flowgen v1.21.0
 */

export type ViewState = {
  longitude: number,
  latitude: number,
  zoom: number,
  bearing?: number,
  pitch?: number,
  altitude?: number,
  ...
};
export type MapboxProps = $Rest<
  {
    mapboxgl: any,
    container: any,
    gl: any,
    goongApiAccessToken: string,
    goongApiUrl: string,
    attributionControl: boolean,
    preserveDrawingBuffer: boolean,
    onLoad: Function,
    onError: Function,
    reuseMaps: boolean,
    transformRequest: Function,
    mapStyle: any,
    preventStyleDiffing: boolean,
    visible: boolean,
    asyncRender: boolean,
    width: number | string,
    height: number | string,
    viewState: ViewState,
    longitude: number,
    latitude: number,
    zoom: number,
    bearing: number,
    pitch: number,
    altitude: number,
    mapOptions: any,
    ...
  },
  { ... }
>;
declare export default class Mapbox {
  static initialized: boolean;
  static defaultProps: MapboxProps;
  static propTypes: any;
  static savedMap: any;
  props: MapboxProps;
  width: number;
  height: number;
  constructor(props: MapboxProps): this;
  finalize(): Mapbox;
  setProps(props: MapboxProps): Mapbox;
  getMap(): any;
}
