import { type SshExecResult } from '../transports/ssh.js'; export declare const REMOTE_TIMEOUT_MS = 30000; export interface RemoteSecretsRawOptions { tty?: boolean; input?: string; osLookupName?: string; secret?: boolean; timeoutMs?: number; env?: Record; } export declare function credentialTransportSshOpts(target: string): { hostKeyOpts: string[]; }; export declare function assertCredentialTransportHostPinned(target: string, pinned?: boolean): void; export declare function isDangerousRemoteEnvKey(name: string): boolean; export declare function resolveHostSshTarget(nameOrAlias: string): Promise; export declare function parseHostsOption(opts: { host?: string; hosts?: string; device?: string; devices?: string; }): string[]; export declare function splitBundleRef(ref: string): { bundle: string; host?: string; }; export declare function remoteSecretsRaw(target: string, args: string[], opts?: RemoteSecretsRawOptions): SshExecResult; export declare function remoteSecretsRawAsync(target: string, args: string[], opts?: RemoteSecretsRawOptions): Promise; export type RemoteEngineVerdict = { ok: true; contract: number; version?: string; } | { ok: false; code?: 'ENGINE_INCOMPATIBLE'; message: string; }; export declare function evaluateRemoteHandshake(target: string, res: SshExecResult): RemoteEngineVerdict; export interface RemoteEngineProbeOptions { env?: Record; timeoutMs?: number; } export declare function probeRemoteEngine(target: string, opts?: RemoteEngineProbeOptions): RemoteEngineVerdict; export declare function probeRemoteEngineAsync(target: string, opts?: RemoteEngineProbeOptions): Promise; export declare function remoteSecretsStream(target: string, args: string[], opts?: { osLookupName?: string; }): number; export declare function remoteResolveEnv(target: string, bundle: string, opts?: { osLookupName?: string; }): Promise>; export type RemoteKeychainWriteVerification = { ok: true; } | { ok: false; kind: 'locked-keychain'; reason: string; } | { ok: false; kind: 'error'; reason: string; }; export declare function evaluateKeychainWriteVerification(pushedKeys: string[], readBack: { ok: true; keys: string[]; } | { ok: false; stderr: string; }): RemoteKeychainWriteVerification; export declare function keychainWriteFailureMessage(host: string, bundle: string, reason: string): string; export declare function verifyRemoteKeychainPush(target: string, bundle: string, pushedKeys: string[], opts?: { osLookupName?: string; secret?: boolean; timeoutMs?: number; env?: Record; }): RemoteKeychainWriteVerification; export declare function verifyRemoteKeychainPushAsync(target: string, bundle: string, pushedKeys: string[], opts?: { osLookupName?: string; secret?: boolean; timeoutMs?: number; env?: Record; }): Promise; export declare function buildRemoteFileImportCommand(bundle: string, dotenv: string, opts?: { force?: boolean; policyNever?: boolean; env?: Record; }): { remoteCmd: string; input: string; };