import { NextConfig } from "next"; import { PHASE_DEVELOPMENT_SERVER, PHASE_EXPORT, PHASE_PRODUCTION_BUILD, PHASE_PRODUCTION_SERVER, PHASE_TEST } from "next/constants"; //#region src/plugin/plugin.d.ts type Phase = typeof PHASE_EXPORT | typeof PHASE_PRODUCTION_BUILD | typeof PHASE_PRODUCTION_SERVER | typeof PHASE_DEVELOPMENT_SERVER | typeof PHASE_TEST; type PluginOptions = { /** Path to the i18n config file (default: "./i18n.config.ts") */ configPath?: string; /** Output format for the compiled config file (default: "esm") */ format?: "esm" | "cjs"; }; /** * This function creates the wrapper function for your Next.js config object. * * @example * import createNextGlobeGenPlugin from "next-globe-gen/plugin"; * const withNextGlobeGen = createNextGlobeGenPlugin(); * export default withNextGlobeGen({ * // Next.js config options here * }); */ declare function createNextGlobeGenPlugin({ configPath, format }?: PluginOptions): (config: NextConfig) => (phase: Phase) => Promise; //#endregion export { PluginOptions, createNextGlobeGenPlugin as default };