import { NextConfig } from "next"; import { GetConfigurationOptions } from "@intlayer/config/node"; //#region src/server/withIntlayer.d.ts type WithIntlayerOptions = GetConfigurationOptions & { enableTurbopack?: boolean; }; /** * 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: >(nextConfig?: T, configOptions?: WithIntlayerOptions) => 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: >(nextConfig?: T | Promise, configOptions?: WithIntlayerOptions) => Promise; //#endregion export { withIntlayer, withIntlayerSync }; //# sourceMappingURL=withIntlayer.d.ts.map