// This library is intended to be run under NodeJS as well as a browser. As such // it's useful to be able to conditionally execute code that relies a Window, e.g.: // // if (typeof window !== 'undefined') { // window.document.getElementById('…'); // } // declare const window: Window | undefined; declare const FileReader: | { prototype: FileReader; new (): FileReader; } | undefined; declare const document: Document | undefined; declare var localStorage: Storage | undefined; declare var Image: { new (width?: number, height?: number): HTMLImageElement } | undefined;