export declare const MIN_PASSPHRASE = 12; export type BundleErrorCode = 'BAD_PASSPHRASE_OR_DAMAGED' | 'NOT_A_BUNDLE' | 'UNSUPPORTED_FORMAT' | 'PASSPHRASE_REQUIRED'; export declare class BundleError extends Error { code: BundleErrorCode; constructor(code: BundleErrorCode, message?: string); } export interface BundleEntryInfo { name: string; size: number; sha256: string; } export interface BundleManifest { format: 1; kind: 'kyma' | 'docker'; fromVersion: string; toVersion: string; createdAt: string; entries: BundleEntryInfo[]; } export type PromptFn = (questions: object[]) => Promise>; export declare function resolvePassphrase(opts: { encrypt: boolean; confirm: boolean; env?: NodeJS.ProcessEnv; prompt: PromptFn; }): Promise; export declare function backupFileName(label: string, fromVersion: string, now: Date): string; export declare function defaultBackupDir(): string; export declare function writeBundle(file: string, passphrase: string | null, manifest: Omit, entries: AsyncIterable<{ name: string; source: string; }>): Promise; export declare function openBundle(file: string, passphrase: string | null, workDir: string): Promise<{ manifest: BundleManifest; path(name: string): string; }>; //# sourceMappingURL=bundle.d.ts.map