declare let beforePaint: (cb: any) => Promise; export default beforePaint;