import type { Topology } from "topojson-specification"; import type { Feature, FeatureCollection } from "geojson"; export type Point = [number, number]; export interface Transform { x: number; y: number; k: number; } export interface PreparedFeature extends Omit { id: string; properties: { name: string; [key: string]: any; }; rsmKey: string; svgPath: string; } export interface PreparedMesh { outline?: PreparedFeature; borders?: PreparedFeature; } export type Geography = Topology | FeatureCollection; export type PathGenerator = (geo: any) => string | null; export declare function getCoords(w: number, h: number, t: Transform): [number, number]; export declare function fetchGeographies(url: string): Promise; export declare function getFeatures(geographies: Geography, parseGeographies?: (features: Feature[]) => Feature[]): Feature[]; export declare function getMesh(geographies: Geography): { outline: any; borders: any; } | null; export declare function prepareMesh(outline: any, borders: any, path: PathGenerator): PreparedMesh; export declare function prepareFeatures(geographies: Feature[] | null | undefined, path: PathGenerator): PreparedFeature[]; export declare function createConnectorPath(dx?: number, dy?: number, curve?: number | [number, number]): string; export declare function isString(geo: any): geo is string; //# sourceMappingURL=utils.d.ts.map