import { NextConfig } from 'next'; import { Redirect, Header } from 'next/dist/lib/load-custom-routes.js'; export interface WithFaustConfig { previewDestination?: string; } /** * Faust packages to bundle into the app. In production, Turbopack loads * packages from node_modules outside the app's bundle, so their components * read a separate copy of Next.js's router context and throw "NextRouter was * not mounted" on pages rendered on demand. Bundling them keeps one copy. */ export declare const FAUST_TRANSPILE_PACKAGES: string[]; export declare function createRedirects(nextConfig?: NextConfig, redirectFn?: NextConfig['redirects'], previewDestination?: string): Promise; export declare function addHeaders(nextConfig?: NextConfig, existingHeaders?: NextConfig['headers']): Promise; /** * A helper function to merge Faust related Next.js config with a user defined Next.js config. * * @param {NextConfig} exportedUserNextConfig The existing config to be exported prior to adding Faust * @param {WithFaustConfig} withFaustConfig The Configuration for Faust * @returns {NextConfig} The modified config to be exported */ export declare function withFaust(exportedUserNextConfig?: NextConfig, withFaustConfig?: WithFaustConfig): NextConfig;