import { NextConfig } from 'next/dist/next-server/server/config'; import { Plugin } from 'webpack'; import { pluginOptions as PostCSSPluginOptions } from 'postcss-preset-env'; interface WithCssOptions { afterPlugins?: Plugin[]; beforePlugins?: Plugin[]; presetEnvOptions?: PostCSSPluginOptions; } interface DatoOptions { environment?: string; token?: string; } interface NextHashiCorpOptions { css?: WithCssOptions; dato?: DatoOptions; transpileModules?: string[]; } export = withHashicorp; declare function withHashicorp({ css, dato, transpileModules, }?: NextHashiCorpOptions): (nextConfig: Partial) => NextConfig;