import { URI } from "../../../../../base/common/uri.js"; import { IFileService } from "../../../../../platform/files/common/files.service.js"; import { PromptsStorage } from "../../common/promptSyntax/service/promptsService.js"; import { PromptsType } from "../../common/promptSyntax/promptTypes.js"; export declare const CUSTOMIZATION_MIGRATION_RECOVERY_MANIFEST = "manifest.json"; export type CustomizationMigrationRecoveryStatus = "prepared" | "running" | "completed" | "cancelled" | "unknown"; export interface ICustomizationMigrationRecoverySourceInput { readonly uri: URI; readonly storage: PromptsStorage; readonly type: PromptsType | "mcpServer"; } export interface ICustomizationMigrationRecoverySource { readonly source: string; readonly backup: string; readonly kind: "file" | "directory"; readonly fingerprint: string; readonly storages: readonly PromptsStorage[]; readonly types: readonly (PromptsType | "mcpServer")[]; } export interface ICustomizationMigrationRecoveryManifest { readonly version: 1; readonly migrationFlowId: string; readonly harnessId: string; readonly harnessLabel: string; readonly createdAt: string; readonly status: CustomizationMigrationRecoveryStatus; readonly sessionResource?: string; readonly restoredAt?: string; readonly sources: readonly ICustomizationMigrationRecoverySource[]; } export interface ICustomizationMigrationRecoveryPlanEntry { readonly source: ICustomizationMigrationRecoverySource; readonly state: "missing" | "unchanged" | "changed"; readonly currentFingerprint?: string; } export interface ICustomizationMigrationRecoveryPlan { readonly manifestResource: URI; readonly manifest: ICustomizationMigrationRecoveryManifest; readonly entries: readonly ICustomizationMigrationRecoveryPlanEntry[]; } export interface ICustomizationMigrationRecoveryListResult { readonly recoveries: readonly { readonly manifestResource: URI; readonly manifest: ICustomizationMigrationRecoveryManifest; }[]; readonly errors: readonly Error[]; } export declare function prepareCustomizationMigrationRecovery(fileService: IFileService, recoveryFolder: URI, migrationFlowId: string, harness: { readonly id: string; readonly label: string; }, inputs: readonly ICustomizationMigrationRecoverySourceInput[]): Promise<{ readonly manifestResource: URI; readonly manifest: ICustomizationMigrationRecoveryManifest; }>; export declare function updateCustomizationMigrationRecovery(fileService: IFileService, manifestResource: URI, update: Partial> & { readonly sessionResource?: URI; readonly restoredAt?: string; }): Promise; export declare function listCustomizationMigrationRecoveries(fileService: IFileService, recoveryRoot: URI): Promise; export declare function createCustomizationMigrationRecoveryPlan(fileService: IFileService, manifestResource: URI): Promise; export declare function restoreCustomizationMigrationSources(fileService: IFileService, plan: ICustomizationMigrationRecoveryPlan, overwriteChanged: boolean): Promise<{ readonly restored: number; readonly unchanged: number; }>; export declare function readCustomizationMigrationRecoveryManifest(fileService: IFileService, manifestResource: URI): Promise;