import type { RasterLayerOptions } from "../../common/types"; import { MMapEntity } from "../MMapEnities"; import type { LayerImplementationClasses } from "../../common/types/layer-implementation"; /** * MMapLayer props */ type MMapLayerProps = { /** Layer id */ id?: string; /** Layer type. For tile data sources should use 'ground' */ type: string; /** Layer source */ source?: string; /** Layer z-index to control order. Default is 1500 */ zIndex?: number; /** Layer id to control order in parent group */ grouppedWith?: string; /** Layer options */ options?: { raster?: RasterLayerOptions; }; /** Method, allows you to define your own implementation of the layer */ implementation?: LayerImplementationClasses; }; declare const defaultProps: Readonly<{ zIndex: 1500; }>; type DefaultProps = typeof defaultProps & { id: string; }; /** * Map layer. */ declare class MMapLayer extends MMapEntity { static defaultProps: Readonly<{ zIndex: 1500; }>; protected _getDefaultProps(props: MMapLayerProps): DefaultProps; protected _onAttach(): void; protected _onDetach(): void; protected _onUpdate(propsDiff: Partial, oldProps: MMapLayerProps): void; } export { MMapLayer, MMapLayerProps };