import type { CommandOptions } from './utils';
export type InitOptions = CommandOptions;
/**
 * Detect which Nua-managed packages are explicitly imported in the config.
 * Returns a map of package specifier → local import name.
 */
export declare function detectNuaManagedImports(content: string): Map<string, string>;
/**
 * Remove a function call (e.g. `mdx()` or `sitemap({ ... })`) from an array property.
 */
export declare function removeCallFromArray(body: string, arrayProp: string, callName: string): string;
/**
 * Clean up empty structures left after removing managed integrations/plugins.
 * Removes empty arrays/objects and the Nua-default `sourcemap: true`.
 */
export declare function cleanEmptyStructures(body: string): string;
export declare function transformConfig(content: string, managedImports: Map<string, string>): string;
export declare function transformPackageJson(pkg: Record<string, any>, nuaVersion: string): Record<string, any>;
export declare function init({ cwd, dryRun, yes }?: InitOptions): Promise<void>;
//# sourceMappingURL=init.d.ts.map