interface LegendOptions {
    format?: (value: number | number[], index?: number, arr?: any[]) => string;
    onLoad?: () => void;
    dynamic?: boolean;
    config?: {
        othersLabel?: string;
        samples?: number;
        variable?: string;
        order?: string;
    };
}
export default class Legends {
    static layersLegend(widget: any, layers: any, options?: LegendOptions): void;
    static rampLegend(widget: any, layer: any, prop: any, options?: LegendOptions): void;
}
export {};
