import { writeBundle } from './bundle'; import { UpgradePolicy, materializeKit } from './kit'; import { Kubectl, KubectlRead } from './kubectl'; import { ImageTarget, PromptOne } from './kymaRender'; import { SignalSource, StepId } from './steps'; export type UpgradeContext = { namespace: string; packageVersion: string; prompt: PromptOne; backupDir?: string; encrypt?: boolean; yes?: boolean; testImages?: ImageTarget; kubectl?: Kubectl; kubectlRead?: KubectlRead; lookupDigest?: (config: unknown, image: string, tag: string) => Promise; statfs?: (dir: string) => Promise; writeBundle?: typeof writeBundle; materializeKit?: typeof materializeKit; policy?: Partial; signals?: SignalSource; env?: NodeJS.ProcessEnv; log?: (message: string) => void; exit?: (code: number) => void; healthTimeoutSeconds?: number; jobStopTimeoutSeconds?: number; pollMs?: number; now?: () => Date; adjustSetup?: (setup: any) => void; }; export type UpgradeResult = { ok: true; from: string; to: string; backup: string; } | { ok: false; failedAt: StepId; rolledBack: boolean; from: string; backup?: string; error: string; restoreCommand?: string; }; export declare const NEW_DEFAULTS_NOTE = "The stored gateway configuration is kept as it is. Settings this release newly ships are offered in the cockpit: Configuration Management, \"Compare with defaults\"."; export declare const exitCodeOf: (r: UpgradeResult) => number; export declare function describe(error: unknown, opts?: { kubectlHint?: boolean; }): string; export declare function runUpgrade(ctx: UpgradeContext): Promise; export declare function withoutSecretEnv(): NodeJS.ProcessEnv; export declare function askBeforeOutage(ctx: Pick, env: NodeJS.ProcessEnv, log: (m: string) => void): Promise; //# sourceMappingURL=kyma.d.ts.map