import { Feature, GeoJsonProperties, Point, LineString, Polygon } from 'geojson'; export interface KmlFolder { folder_id: string; name: string; parent_folder_id: string | null; } export interface KmlIconStyleProps { 'icon-color'?: string; 'icon-opacity'?: number; 'icon-size'?: number; 'icon-image'?: string; 'text-color'?: string; 'text-opacity'?: number; 'text-size'?: number; } export interface KmlLineStyleProps { 'line-color'?: string; 'line-opacity'?: number; 'line-width'?: number; } export interface KmlPolyStyleProps { 'fill-color'?: string; 'fill-opacity'?: number; 'fill-outline-color'?: string; } export type KmlStyleProps = KmlIconStyleProps | KmlLineStyleProps | KmlPolyStyleProps; export type KmlPointFeature

= Omit, "bbox">; export type KmlLineFeature

= Omit, "bbox">; export type KmlPolyFeature

= Omit, "bbox">; export type KmlFeature

= KmlPointFeature

| KmlLineFeature

| KmlPolyFeature

; export interface KmlGeojson

{ type: 'FeatureCollection'; features: Array>; } export declare class KmlToGeojson { private include_altitude; constructor(altitude?: boolean); private readonly get1; private readonly get; private readonly kmlColor; private readonly parsePlacemark; private readonly parseFolder; private geometryIsValid; private readonly parseNode; private readonly streamParseNode; private readonly parseStyleNode; private readonly parseStyles; readonly parse: (kml_content: string) => { folders: KmlFolder[]; geojson: KmlGeojson; }; readonly streamParse: (kml_content: string, on_folder: (folder: KmlFolder) => (any | void | Promise | Promise), on_geometry: (geometry: KmlFeature) => (any | void | Promise | Promise)) => Promise; }