import { HERE_SUPPORTED_VERSIONS } from '../utils/here-utils'; import type { DeepPartial, EmptyObject } from '../utils/mapped-types'; import type { TalksBaseLayerId } from '../utils/talks-layers'; export interface MapConfig { key: string; version: string; } export interface TgMapConfig { google: MapConfig & { /** @see https://developers.google.com/maps/documentation/javascript/versions */ version: 'weekly' | 'quarterly' | 'beta' | 'alpha' | '3.49' | '3.50' | '3.51' | '3.52' | '3.64'; language: string; /** @see https://developers.google.com/maps/documentation/javascript/libraries */ libraries: ('drawing' | 'geometry' | 'journeySharing' | 'localContext' | 'marker' | 'places' | 'visualization')[]; /** 是否使用老的点聚合实现 */ useLegacyClusterer?: boolean; }; baidu: MapConfig & ({ /** @see https://lbsyun.baidu.com/index.php?title=jspopular3.0/theupdatelog */ version: '3.0'; } | { type: 'webgl'; version: '1.0'; }); here: MapConfig & { version: typeof HERE_SUPPORTED_VERSIONS[number]; }; baiduFree: EmptyObject; googleFree: EmptyObject; yandex: EmptyObject; amap: EmptyObject; osm: EmptyObject; talks: { /** @deprecated 使用layerIds替代 */ layerId?: TalksBaseLayerId | ''; /** 只有第一个元素非空, 才是有效的值; 默认`bing` */ layerIds?: (TalksBaseLayerId | undefined)[]; /** 复写图层内部定义的attribution */ overrideLayerAttribution?: string; /** * CARTO的地图, 现在需要API KEY * @see https://carto.com/basemaps/apikey/ * @see https://github.com/CartoDB/basemap-styles */ cartoKey?: string; }; } export type PartialTgMapConfig = DeepPartial; export declare function getTgMapConfig(): TgMapConfig; export declare function setTgMapConfig(config?: PartialTgMapConfig): void; //# sourceMappingURL=map-config.d.ts.map