import { MapContextLayer } from "@geospatial-sdk/core"; /** * Configuration options for legend generation */ interface LegendOptions { format?: string; widthPxHint?: number; heightPxHint?: number; } /** * Creates a legend from a layer. * * @param {MapContextLayer} layer - The layer to create the legend from. * @param {LegendOptions} [options] - The options to create the legend. * @returns {Promise} A promise that resolves to the legend element or `null` if the legend could not be created. */ export declare function createLegendFromLayer(layer: MapContextLayer, options?: LegendOptions): Promise; export {}; //# sourceMappingURL=from-layer.d.ts.map