import type { MVTTile } from "../mvt-pbf/mvt-types.js";
import type { GeoJSON, FeatureCollection } from '@loaders.gl/schema';
export type FromGeojsonOptions = {
    layerName?: string;
    version?: number;
    extent?: number;
    tileIndex?: {
        x: number;
        y: number;
        z: number;
    };
};
/**
 * Serialize a map of geojson layers
 * loaders.gl addition
 *
 * @param geojson
 * @param [options] - An object specifying the vector-tile specification version and extent that were used to create `layers`.
 * @param [options.extent=4096] - Extent of the vector tile
 * @return  uncompressed, pbf-serialized tile data
 */
export declare function fromGeojson(geojson: FeatureCollection, options: FromGeojsonOptions): ArrayBuffer;
/**
 * Serialize a vector-tile-js-created tile to pbf
 *
 * @param tile
 * @return  uncompressed, pbf-serialized tile data
 */
export declare function fromVectorTileJs(tile: MVTTile): ArrayBuffer;
/**
 * Serialized a geojson-vt-created tile to pbf.
 *
 * @param vtLayers - An object mapping layer names to geojson-vt-created vector tile objects
 * @param  [options] - An object specifying the vector-tile specification version and extent that were used to create `layers`.
 * @param  [options.version=1] - Version of vector-tile spec used
 * @param  [options.extent=4096] - Extent of the vector tile
 * @return uncompressed, pbf-serialized tile data
 *
export function fromGeojsonVt(vtLayers, options): ArrayBuffer {
  options = options || {};
  const layers = {};
  for (const key in vtLayers) {
    layers[key] = new GeoJSONWrapper(vtLayers[key].features, options);
    layers[key].name = key;
    layers[key].version = options.version;
    layers[key].extent = options.extent;
  }
  return fromVectorTileJs({layers});
}
*/
export declare function normalizeGeojson(geojson: GeoJSON): FeatureCollection;
//# sourceMappingURL=to-vector-tile.d.ts.map