import type { NextConfig } from 'next';
import { PluginConfig } from '@posthog/webpack-plugin';
type NextFuncConfig = (phase: string, { defaultConfig }: {
    defaultConfig: NextConfig;
}) => NextConfig;
type NextAsyncConfig = (phase: string, { defaultConfig }: {
    defaultConfig: NextConfig;
}) => Promise<NextConfig>;
type UserProvidedConfig = NextConfig | NextFuncConfig | NextAsyncConfig;
export declare function withPostHogConfig(userNextConfig: UserProvidedConfig, posthogConfig: PluginConfig): NextConfig;
export {};
