import { _ as MigrationSummary, c as MigrationDetection, h as MigrationProviderPlugin, l as MigrationItem, m as MigrationProviderContext, p as MigrationPlan } from "./types-CLo6hM78.js";

//#region src/plugin-sdk/migration.d.ts
declare const MIGRATION_REASON_MISSING_SOURCE_OR_TARGET = "missing source or target";
declare const MIGRATION_REASON_TARGET_EXISTS = "target exists";
declare function createMigrationItem(params: Omit<MigrationItem, "status"> & {
  status?: MigrationItem["status"];
}): MigrationItem;
declare function markMigrationItemConflict(item: MigrationItem, reason: string): MigrationItem;
declare function markMigrationItemError(item: MigrationItem, reason: string): MigrationItem;
declare function markMigrationItemSkipped(item: MigrationItem, reason: string): MigrationItem;
declare function summarizeMigrationItems(items: readonly MigrationItem[]): MigrationSummary;
type MigrationConfigPatchDetails = {
  path: string[];
  value: unknown;
};
declare function readMigrationConfigPath(root: Record<string, unknown>, path: readonly string[]): unknown;
declare function mergeMigrationConfigValue(left: unknown, right: unknown): unknown;
declare function writeMigrationConfigPath(root: Record<string, unknown>, path: readonly string[], value: unknown): void;
declare function hasMigrationConfigPatchConflict(config: MigrationProviderContext["config"], path: readonly string[], value: unknown): boolean;
declare function createMigrationConfigPatchItem(params: {
  id: string;
  target: string;
  path: string[];
  value: unknown;
  message: string;
  conflict?: boolean;
  reason?: string;
  source?: string;
  details?: Record<string, unknown>;
}): MigrationItem;
declare function createMigrationManualItem(params: {
  id: string;
  source: string;
  message: string;
  recommendation: string;
}): MigrationItem;
declare function readMigrationConfigPatchDetails(item: MigrationItem): MigrationConfigPatchDetails | undefined;
declare function applyMigrationConfigPatchItem(ctx: MigrationProviderContext, item: MigrationItem): Promise<MigrationItem>;
declare function applyMigrationManualItem(item: MigrationItem): MigrationItem;
declare function redactMigrationValue(value: unknown): unknown;
declare function redactMigrationItem(item: MigrationItem): MigrationItem;
declare function redactMigrationPlan<T extends MigrationPlan>(plan: T): T;
//#endregion
export { MIGRATION_REASON_MISSING_SOURCE_OR_TARGET, MIGRATION_REASON_TARGET_EXISTS, MigrationConfigPatchDetails, type MigrationDetection, type MigrationItem, type MigrationPlan, type MigrationProviderContext, type MigrationProviderPlugin, type MigrationSummary, applyMigrationConfigPatchItem, applyMigrationManualItem, createMigrationConfigPatchItem, createMigrationItem, createMigrationManualItem, hasMigrationConfigPatchConflict, markMigrationItemConflict, markMigrationItemError, markMigrationItemSkipped, mergeMigrationConfigValue, readMigrationConfigPatchDetails, readMigrationConfigPath, redactMigrationItem, redactMigrationPlan, redactMigrationValue, summarizeMigrationItems, writeMigrationConfigPath };