export declare function bundleEnvToDotenv(env: Record): string; export type RemoteBackend = 'keychain' | 'file'; export interface ResolvedBundleForPush { env: Record; dotenv: string; keyCount: number; } export interface PushBundleOptions { remoteBackend: RemoteBackend; force?: boolean; passphrase?: string; operation: string; policyNever?: boolean; agentOnly?: boolean; literalValues?: Record; timeoutMs?: number; remoteSecretsHome?: string; } export interface PushBundleResult { ok: boolean; host: string; bundle: string; keyCount: number; message: string; code?: 'ENGINE_INCOMPATIBLE'; } export interface LiteralRestorePlan { key: string; removeArgs: string[]; addArgs: string[]; } export declare function planLiteralRestoration(bundle: string, literalValues?: Record): LiteralRestorePlan[]; export declare function resolveBundleForPush(bundle: string, caller: string, opts?: { agentOnly?: boolean; }): ResolvedBundleForPush; export type PushTransport = { kind: 'refuse'; message: string; } | { kind: 'ssh'; remoteCmd: string; input: string; } | { kind: 'remote-secrets'; args: string[]; input: string; env: Record; }; export declare function planPushTransport(resolved: ResolvedBundleForPush, bundle: string, host: string, opts: PushBundleOptions): PushTransport; export declare function pushResolvedBundleToHost(resolved: ResolvedBundleForPush, bundle: string, host: string, opts: PushBundleOptions): PushBundleResult; export declare function pushBundleToHost(bundle: string, host: string, opts: PushBundleOptions): PushBundleResult; export declare function pushResolvedBundleToHostAsync(resolved: ResolvedBundleForPush, bundle: string, host: string, opts: PushBundleOptions): Promise; export declare function pushBundleToHostAsync(bundle: string, host: string, opts: PushBundleOptions): Promise;