import { DataSourceOptions, GeoJSONVectorTileDataSourceOptions, MergedMBVTTileDataSourceOptions, OrderedTileDataSourceOptions, TileDataSourceOptions } from '.'; import { BaseNative } from '../index.common'; import { Projection } from 'nativescript-carto/projections'; import { FeatureCollection } from '../geometry/feature'; export declare abstract class DataSource extends BaseNative { } export declare class TileDataSource extends BaseNative { createNative(options: any): any; } export declare class OrderedTileDataSource extends TileDataSource { createNative(options: OrderedTileDataSourceOptions): com.carto.datasources.OrderedTileDataSource; } export declare class MergedMBVTTileDataSource extends TileDataSource { createNative(options: MergedMBVTTileDataSourceOptions): com.carto.datasources.MergedMBVTTileDataSource; } export declare class GeoJSONVectorTileDataSource extends TileDataSource { createNative(options: GeoJSONVectorTileDataSourceOptions): com.carto.datasources.GeoJSONVectorTileDataSource; createLayer(name: string): number; setLayerFeatureCollection(layerIndex: number, projection: Projection, featureCollection: FeatureCollection): void; setLayerGeoJSON(layerIndex: number, geoJSON: Object): void; deleteLayer(index: number): void; }