import { NextConfig } from "next";
import { GetConfigurationOptions } from "@intlayer/config";

//#region src/server/withIntlayer.d.ts

/**
 * A Next.js plugin that adds the intlayer configuration to the webpack configuration
 * and sets the environment variables
 *
 * Usage:
 *
 * ```ts
 * // next.config.js
 * export default withIntlayerSync(nextConfig)
 * ```
 */
declare const withIntlayerSync: <T extends Partial<NextConfig>>(nextConfig?: T, configOptions?: GetConfigurationOptions) => NextConfig & T;
/**
 * A Next.js plugin that adds the intlayer configuration to the webpack configuration
 * and sets the environment variables
 *
 * Usage:
 *
 * ```ts
 * // next.config.js
 * export default withIntlayer(nextConfig)
 * ```
 *
 * > Node withIntlayer is a promise function. Use withIntlayerSync instead if you want to use it synchronously.
 * > Using the promise allows to prepare the intlayer dictionaries before the build starts.
 *
 */
declare const withIntlayer: <T extends Partial<NextConfig>>(nextConfig?: T, configOptions?: GetConfigurationOptions) => Promise<NextConfig & T>;
//#endregion
export { withIntlayer, withIntlayerSync };
//# sourceMappingURL=withIntlayer.d.ts.map