import type { Face, Feature, Geometry, MValue, Properties, S2Feature, VectorFeature, VectorGeometry } from '../index.js'; /** * Convet a GeoJSON Feature to an S2Feature * @param data - GeoJSON Feature * @param buildBBox - optional - build a bbox for the feature if desired * @returns - S2Feature */ export declare function toS2, D extends MValue = Properties, P extends Properties = Properties>(data: Feature> | VectorFeature>, buildBBox?: boolean): S2Feature>[]; /** * Convert a GeoJSON Feature to a GeoJSON Vector Feature * @param data - GeoJSON Feature * @param buildBBox - optional - build a bbox for the feature if desired * @returns - GeoJson Vector Feature */ export declare function toVector, D extends MValue = Properties, P extends Properties = Properties, G extends Geometry = Geometry>(data: Feature, buildBBox?: boolean): VectorFeature>; /** The resultant geometry after conversion */ export interface ConvertedGeometry { /** The vector geometry that was converted */ geometry: VectorGeometry; /** The face of the vector geometry that was converted */ face: Face; } /** A list of converted geometries */ export type ConvertedGeometryList = ConvertedGeometry[]; /** * Reproject GeoJSON geometry coordinates from lon-lat to a 0->1 coordinate system in place * @param feature - input GeoJSON */ export declare function toUnitScale, D extends MValue = Properties, P extends Properties = Properties>(feature: VectorFeature): void; /** * Reproject GeoJSON geometry coordinates from 0->1 coordinate system to lon-lat in place * @param feature - input GeoJSON */ export declare function toLL, D extends MValue = Properties, P extends Properties = Properties>(feature: VectorFeature): void; /** * Convert a longitude to a 0->1 coordinate * @param x - longitude * @returns a 0->1 coordinate */ export declare function projectX(x: number): number; /** * Convert a latitude to a 0->1 coordinate * @param y - latitude * @returns a 0->1 coordinate */ export declare function projectY(y: number): number;