import type { PromotionEnvironmentRemote, PromotionEnvironmentScope, PromotionProviderAuthType, PromotionProviderType, promotionGitApplySettingsSchema, promotionGitPromoteSettingsSchema } from '@n8n/api-types'; import { z } from 'zod'; import type { PackageFile } from './base-branch-files'; export type PromotionGitApplySettings = z.infer; export type PromotionGitPromoteSettings = z.infer; export declare const promotionSshKeyAuthPayloadSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; privateKey: z.ZodString; }, "strict", z.ZodTypeAny, { schemaVersion: 1; privateKey: string; }, { schemaVersion: 1; privateKey: string; }>; export declare const promotionTokenAuthPayloadSchema: z.ZodObject<{ schemaVersion: z.ZodLiteral<1>; username: z.ZodString; password: z.ZodString; }, "strict", z.ZodTypeAny, { schemaVersion: 1; username: string; password: string; }, { schemaVersion: 1; username: string; password: string; }>; export type PromotionAuthPayload = z.infer | z.infer; export type PromotionGitCredentials = { authType: 'ssh-key'; privateKey: string; } | { authType: 'token'; username: string; password: string; }; export type ResolvedPromotionConfig = { direction: 'apply'; settings: PromotionGitApplySettings; } | { direction: 'promote'; settings: PromotionGitPromoteSettings; }; export type PromotionOperationInput = Readonly<{ environmentId: string; scope: PromotionEnvironmentScope; providerId: string; providerType: PromotionProviderType; authType: PromotionProviderAuthType; encryptedAuth: string; hostBaseUrl: string | null; remote: PromotionEnvironmentRemote; config: ResolvedPromotionConfig; }>; export type BranchPackage = Readonly<{ environmentId: string; branchName: string; commitSha: string | null; files: PackageFile[]; hasManifest: boolean; readFiles: (paths: readonly string[]) => Promise>; }>; export type PackageCommit = Readonly<{ commitSha: string; listFiles: () => Promise>; readFiles: (paths: readonly string[]) => Promise>; }>; export type PromotionCacheDescriptor = { schemaVersion: 1; environmentId: string; remoteUrl: string; checkoutBranchName: string; }; export type PromotionReviewCloseReason = 'environment_deleted' | 'environment_target_changed' | 'environment_host_changed';