export declare function legendHandler(legendOptions: any): any;