import z from "zod"; export declare const operationTypes: readonly ["addComponents", "removeComponents", "installComponents", "addInstance", "removeInstance", "initResourceGroup", "removeResourceGroup", "applyResourceGroupChanges", "undoResourceGroupChanges", "configureFramework", "runCodeMod"]; export declare const codeModTypes: readonly ["configureNext"]; export declare const extraOptionTypes: readonly ["configureNext"]; export type OperationType = (typeof operationTypes)[number]; export type ExtraOptionTypes = (typeof extraOptionTypes)[number]; export type OperationOptions = { options: OptionsType; cmdArgs?: { noScroll?: boolean; }; }; export type OptionsType = { type?: ExtraOptionTypes; args: Record; }; export type Operation = { type: OperationType; options?: OptionsType; }; export type Migration = { id: string; up: Operation[]; down?: Operation[]; }; export declare const migrationSchema: z.ZodObject<{ id: z.ZodString; up: z.ZodArray; options: z.ZodOptional>; args: z.ZodRecord]>>; }, "strip", z.ZodTypeAny, { args: Record>; type?: "configureNext" | undefined; }, { args: Record>; type?: "configureNext" | undefined; }>>; }, "strip", z.ZodTypeAny, { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }, { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }>, "many">; down: z.ZodOptional; options: z.ZodOptional>; args: z.ZodRecord]>>; }, "strip", z.ZodTypeAny, { args: Record>; type?: "configureNext" | undefined; }, { args: Record>; type?: "configureNext" | undefined; }>>; }, "strip", z.ZodTypeAny, { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }, { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { id: string; up: { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }[]; down?: { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }[] | undefined; }, { id: string; up: { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }[]; down?: { type: "addComponents" | "removeComponents" | "installComponents" | "addInstance" | "removeInstance" | "initResourceGroup" | "removeResourceGroup" | "applyResourceGroupChanges" | "undoResourceGroupChanges" | "configureFramework" | "runCodeMod"; options?: { args: Record>; type?: "configureNext" | undefined; } | undefined; }[] | undefined; }>; export declare const parseMigration: (yamlString: string) => Migration; export declare const exportMigration: (migration: Migration, path: string) => Promise; export declare function ensureMigrations(): Promise; export declare function getMigrationHistory(): Promise<{ migrations: string[]; }>; export declare function getMigrationFiles(): Promise; export declare function getUnappliedMigrations(): Promise; export declare function updateMigrationHistory(migrationId: string, apply?: boolean): Promise;