import { z } from 'zod'; import { type WriterProfile } from './writer-profile.js'; declare const requestSchema: z.ZodObject<{ cwd: z.ZodString; sourcePath: z.ZodString; format: z.ZodEnum<{ json: "json"; yaml: "yaml"; }>; scope: z.ZodDefault>; userConfigDir: z.ZodOptional; profile: z.ZodObject<{ id: z.ZodString; name: z.ZodString; version: z.ZodDefault; provenance: z.ZodObject<{ source: z.ZodString; license: z.ZodString; }, z.core.$strict>; }, z.core.$strict>; }, z.core.$strict>; export type WriterMigrationRequest = z.input; export interface WriterMigrationPlan { schemaVersion: 'aiwg.writer-migration-plan.v1'; id: string; planSha256: string; createdAt: string; dryRun: true; cwd: string; source: { path: string; format: 'yaml' | 'json'; sha256: string; bytes: number; legacyKind: string; }; target: { scope: 'project' | 'user'; profileId: string; userConfigDir?: string; existingProfile: { revision: number; sha256: string; } | null; activatesProfile: false; }; actions: string[]; warnings: string[]; profileTemplate: WriterProfile; } export interface WriterMigrationApplyResult { schemaVersion: 'aiwg.writer-migration-apply.v1'; id: string; appliedAt: string; cwd: string; sourceSha256: string; backupPath: string; backupSha256: string; profileId: string; scope: 'project' | 'user'; userConfigDir?: string; profileRevisionBefore: number; profileRevisionAfter: number; createdProfileSha256: string; activatedProfile: false; } export declare function planWriterProfileMigration(input: WriterMigrationRequest): Promise; export declare function applyWriterProfileMigration(input: WriterMigrationPlan): Promise; export declare function rollbackWriterProfileMigration(result: WriterMigrationApplyResult, options?: { cwd?: string; scope?: 'project' | 'user'; userConfigDir?: string; }): Promise<'restored' | 'removed'>; export {}; //# sourceMappingURL=writer-migration.d.ts.map