import ol_render_Feature from 'ol/render/Feature';
import { Size2 } from '../../api/common';
import Style from 'ol/style/Style';
import { OLFeature } from '../../api/ol-types';
/**
 * @since 0.14
 */
export declare type LegendItemOptions = {
    onload?: Function;
    margin?: number;
    size?: Size2;
    lineHeight?: number;
    style?: Style | Style[] | ((feat: ol_render_Feature | OLFeature) => (Style | Style[]));
    typeGeom?: any;
    feature?: OLFeature;
    properties?: {
        [x: string]: any;
    };
};
/**
 * Get a symbol image for a given legend item
 * @param {LegendItemOptions} item
 * @param {HTMLCanvasElement|undefined} canvas a canvas to draw in, if none create one
 * @param {number|undefined} row row number to draw in canvas, default 0
 * @since 0.14
 */
export declare function getLegendImage(item: LegendItemOptions, canvas?: HTMLCanvasElement | undefined, row?: number | undefined): HTMLCanvasElement;
