import { ExtendedFeature, ExtendedFeatureCollection, GeoPath } from 'd3-geo'; import { fabric } from 'fabric'; declare const _default: (instance?: typeof fabric) => void; export default _default; declare module 'fabric' { namespace fabric { let geoJson: { [key: string]: ExtendedFeatureCollection; }; let defaultGeoJson: keyof typeof iconLibraries; class Map extends Group { geoJson: string; styles: { [key: string]: IObjectOptions; }; mode: 'focus' | 'zoom' | null; byKey: string; features: string[]; _visibleFeatures: ExtendedFeature[] | undefined; _featuresEvents: string[]; _commonStyleKeys: string[]; constructor(options: IMapOptions); updateMap(): Map; __getGeoJson(): ExtendedFeatureCollection; __getFeatures(): ExtendedFeature[]; __getVisibleFeatures(): ExtendedFeature[]; __getPaths(): Path[]; __getPath(projectionPath: GeoPath): Path; __setClipPath(): Map; __setStyles(): Map; static fromObject(options: IMapOptions, callback?: Function): Map; } interface IMapOptions extends IObjectOptions { geoJson?: string; styles?: { [key: string]: IObjectOptions; }; byKey?: string; features?: string[]; mode?: 'focus' | 'zoom' | null; } interface IUtil { registerGeoJson(name: string, library: (() => ExtendedFeatureCollection) | ExtendedFeatureCollection | (() => Promise) | Promise): void; } } }