import { ScreenshotDelegate } from './ScreenshotDelegate' ; declare var global ; ElectronMainContext export class ScreenshotService { public start ( ) { const screenshotDelegate = new ScreenshotDelegate ( ) ; if ( global [ ScreenshotDelegate . DELEGATE_NAME ] ) { throw new Error ( "Object named screenshotDelegate already in global" ) ; } global [ ScreenshotDelegate . DELEGATE_NAME ] = screenshotDelegate ; } }