import type { ApiClient } from './api-client'; import type { ProjectConfigResponse } from './types'; type SshHost = NonNullable['hosts'][number]; /** * Set up SSH config and private key files for the given SSH hosts. * Files are written to sshDir (project-scoped directory, not ~/.ssh). * Fetches credentials from the API, writes key files, and updates sshDir/config. */ export declare function setupSshConfig(client: ApiClient, sshConfig: { hosts: SshHost[]; }, sshDir: string): Promise; /** * Build the managed block content for SSH config. * Uses absolute paths for IdentityFile to work regardless of CWD. */ export declare function buildManagedBlock(sshDir: string, entries: Array<{ hostId: string; hostname: string; port: number; username: string; }>): string; /** * Remove the managed block from SSH config content. * Returns the content outside the managed block. */ export declare function removeManagedBlock(content: string): string; /** * Clean up all SSH config and key files managed by ai-support-agent. * Removes the managed block from {sshDir}/config and deletes key files. */ export declare function cleanupSshConfig(sshDir: string): void; export {}; //# sourceMappingURL=ssh-config-setup.d.ts.map