import type { NextConfig } from 'next' type NextConfigValue = NextConfig | undefined export function withDatadogTurbopack ( nextConfig: (...args: TArguments) => Promise ): (...args: TArguments) => Promise export function withDatadogTurbopack ( nextConfig: (...args: TArguments) => NextConfigValue ): (...args: TArguments) => NextConfig export function withDatadogTurbopack ( nextConfig: (...args: TArguments) => NextConfigValue | Promise ): (...args: TArguments) => NextConfig | Promise export function withDatadogTurbopack ( nextConfig: Promise ): (phase?: string) => Promise export function withDatadogTurbopack ( nextConfig?: NextConfigValue ): (phase?: string) => NextConfig export function withDatadogTurbopack ( nextConfig: NextConfigValue | Promise ): (phase?: string) => NextConfig | Promise