interface UpdateNextConfigOptions { projectRoot: string; backendURL?: string; } /** * Updates or creates a Next.js config file with API rewrite rules for c15t backend * * @param options - Configuration options for updating the Next.js config * @returns Information about the update operation * * @throws {Error} When config file parsing fails * @throws {TypeError} When config structure is invalid * * @example * ```ts * const result = await updateNextConfig({ * projectRoot: '/path/to/project', * backendURL: 'https://api.example.com', * }); * ``` */ export declare const updateNextConfig: ({ projectRoot, backendURL, }: UpdateNextConfigOptions) => Promise<{ updated: boolean; filePath: string | null; alreadyModified: boolean; created: boolean; }>; export {};