// Minimum TypeScript Version: 3.2 // See the `jimp` package index.d.ts for why the version is not 2.8 import { FunctionRet, Jimp, JimpPlugin, JimpType, GetIntersectionFromPlugins, GetIntersectionFromPluginsStatics, JimpConstructors, } from "@jimp/core"; type JimpInstance< TypesFuncArr extends FunctionRet | undefined, PluginFuncArr extends FunctionRet | undefined, J extends JimpConstructors > = J & GetIntersectionFromPluginsStatics< Exclude > & { prototype: JimpType & GetIntersectionFromPlugins< Exclude >; }; declare function configure< TypesFuncArr extends FunctionRet | undefined = undefined, PluginFuncArr extends FunctionRet | undefined = undefined, J extends JimpConstructors = JimpConstructors >( configuration: { types?: TypesFuncArr; plugins?: PluginFuncArr; }, jimpInstance?: J // Since JimpInstance is required, we want to use the default `Jimp` type ): JimpInstance; export default configure;