declare function size(legend: any, selfLegend: any): void; export default size;