import { i as NodmixConfig } from "../../../types.nodmix-Dph4_Y30.js";
import { r as LoadInstalledPluginIndexParams, t as InstalledPluginIndex } from "../../../installed-plugin-index-types-DSfudbmD.js";
import { n as InstalledPluginIndexStoreOptions, t as InstalledPluginIndexStoreInspection } from "../../../installed-plugin-index-store-BEoS5x4a.js";

//#region src/commands/doctor/shared/plugin-registry-migration.d.ts
declare const DISABLE_PLUGIN_REGISTRY_MIGRATION_ENV = "NODMIX_DISABLE_PLUGIN_REGISTRY_MIGRATION";
declare const FORCE_PLUGIN_REGISTRY_MIGRATION_ENV = "NODMIX_FORCE_PLUGIN_REGISTRY_MIGRATION";
type PluginRegistryInstallMigrationPreflightAction = "disabled" | "skip-existing" | "migrate";
type PluginRegistryInstallMigrationPreflight = {
  action: PluginRegistryInstallMigrationPreflightAction;
  filePath: string;
  force: boolean;
  deprecationWarnings: readonly string[];
};
type PluginRegistryInstallMigrationResult = {
  status: "disabled" | "skip-existing" | "dry-run";
  migrated: false;
  preflight: PluginRegistryInstallMigrationPreflight;
} | {
  status: "migrated";
  migrated: true;
  preflight: PluginRegistryInstallMigrationPreflight;
  inspection: InstalledPluginIndexStoreInspection;
  current: InstalledPluginIndex;
};
type PluginRegistryInstallMigrationParams = LoadInstalledPluginIndexParams & InstalledPluginIndexStoreOptions & {
  dryRun?: boolean;
  existsSync?: (path: string) => boolean;
  readConfig?: () => Promise<NodmixConfig> | NodmixConfig;
};
declare function preflightPluginRegistryInstallMigration(params?: PluginRegistryInstallMigrationParams): PluginRegistryInstallMigrationPreflight;
declare function migratePluginRegistryForInstall(params?: PluginRegistryInstallMigrationParams): Promise<PluginRegistryInstallMigrationResult>;
//#endregion
export { DISABLE_PLUGIN_REGISTRY_MIGRATION_ENV, FORCE_PLUGIN_REGISTRY_MIGRATION_ENV, PluginRegistryInstallMigrationParams, PluginRegistryInstallMigrationPreflight, PluginRegistryInstallMigrationPreflightAction, PluginRegistryInstallMigrationResult, migratePluginRegistryForInstall, preflightPluginRegistryInstallMigration };