/** * Batch migration utility for PKL files */ export interface MigrationResult { totalFiles: number; migrated: number; alreadyCurrent: number; errors: number; errorFiles: Array<{ path: string; error: string; }>; } /** * Migrate all PKL files in a directory to the latest schema version */ export declare function migrateDirectory(directory: string): Promise; /** * Migrate a single PKL file to the latest schema version */ export declare function migrateFile(filePath: string): Promise<{ success: boolean; error?: string; oldVersion?: number; newVersion?: number; }>; export interface BackfillDatesResult { totalFiles: number; backfilled: number; alreadyHasDate: number; unparseable: number; errors: number; errorFiles: Array<{ path: string; error: string; }>; } /** * Backfill missing date metadata in PKL files by deriving the date from the file path. * Only modifies files that have no date in their metadata. */ export declare function backfillDates(directory: string, dryRun?: boolean): Promise; export interface ProjectIdMapping { [slug: string]: string; } export interface ProjectIdMigrationResult { totalFiles: number; updated: number; skipped: number; errors: number; errorFiles: Array<{ path: string; error: string; }>; } /** * Migrate projectId fields in transcript PKL files from slugs to UUIDs */ export declare function migrateProjectIds(directory: string, projectMappings: ProjectIdMapping, dryRun?: boolean): Promise; //# sourceMappingURL=migrate.d.ts.map