"use strict";exports.__esModule=true;exports.writeAppTypeDeclarations=writeAppTypeDeclarations;var _fs=require("fs");var _os=_interopRequireDefault(require("os"));var _path=_interopRequireDefault(require("path"));var _fileExists=require("../file-exists");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}async function writeAppTypeDeclarations(baseDir){// Reference `next` types
const appTypeDeclarations=_path.default.join(baseDir,'next-env.d.ts');const hasAppTypeDeclarations=await(0,_fileExists.fileExists)(appTypeDeclarations);if(!hasAppTypeDeclarations){await _fs.promises.writeFile(appTypeDeclarations,'/// <reference types="next" />'+_os.default.EOL+'/// <reference types="next/types/global" />'+_os.default.EOL);}}
//# sourceMappingURL=writeAppTypeDeclarations.js.map