/** * Updates the `typesVersions` and `exports` fields in a package's package.json file * based on the TypeScript downlevel versions we support. * * For TS targets < 4.9, it adds a `typesVersions` field with the downlevelled * TypeScript declaration files. * For TS targets >= 4.9, it adds an `exports` field with the types condition. * * e.g. * ```json * { * "typesVersions": { * "*": { * ".": ["./index.d.ts"] * }, * "<4.8": { * ".": ["./ts4.0/index.d.ts"] * } * }, * "exports": { * ".": { * "import": "./index.d.ts", * "require": "./index.d.ts", * "types<4.8": "./ts4.0/index.d.ts", * "types<5.0": "./ts4.9/index.d.ts" * } * } * } * ``` */ export declare function updatePackageJsonTypes(packageDir?: string, { verbose }?: { verbose?: boolean; }): void; //# sourceMappingURL=updatePackageJsonTypes.d.ts.map