import { LatLngBounds } from "./geo.js"; import { InteractiveLayer } from "./interactive-layer.js"; import { Layer, type LayerOptions } from "./layer.js"; import type { Orihon } from "./map.js"; export declare class LayerGroup extends InteractiveLayer { protected readonly groupLayers: Set>; constructor(layers?: Iterable, options?: TOptions); addLayer(layer: Layer): this; removeLayer(layer: Layer): this; hasLayer(layer: Layer): boolean; clearLayers(): this; /** Visit a snapshot of child layers. Prefer `for (const layer of group.getLayers())` in new code. */ eachLayer(callback: (layer: Layer) => void): this; invoke(methodName: string, ...args: unknown[]): this; getLayers(): Layer[]; onAdd(map: Orihon): void; onRemove(): void; } export declare class FeatureGroup extends LayerGroup { constructor(layers?: Iterable, options?: LayerOptions); addLayer(layer: Layer): this; removeLayer(layer: Layer): this; clearLayers(): this; getBounds(): LatLngBounds; setStyle(style: Record): this; } export declare function layerGroup(layers?: Iterable, options?: LayerOptions): LayerGroup; export declare function featureGroup(layers?: Iterable, options?: LayerOptions): FeatureGroup; //# sourceMappingURL=layer-group.d.ts.map