import { Command } from 'commander'; /** Options for launching a Teleport application bot (tbot) */ export interface TeleportBotAgentOptions { /** Name of the Teleport application */ appName: string; /** Join token for the bot (required on first start, optional afterwards) */ joinToken?: string; /** Working directory where 'data' and 'dest' folders will be created */ workDir: string; /** TTL of short-lived machine certificates (e.g. '8h') */ certificateTtl?: string; /** Interval at which short-lived certificates are renewed (must be < TTL, e.g. '1h') */ renewalInterval?: string; } /** Result of launching the Teleport bot */ export interface TeleportBotAgentResult { /** PID of the launched tbot process */ pid: number; /** Application name used */ appName: string; /** Proxy server used */ proxyServer: string; /** Path to generated certificate file */ certPath: string; /** Path to generated key file */ keyPath: string; /** Path to tbot log file */ logPath: string; } /** * Launches a Teleport application bot (tbot) in background (detached), * creating 'data' and 'dest' subdirectories under the provided workDir, * and streaming stdout/stderr to console. */ export declare function teleportBotAgent({ appName, joinToken, workDir, certificateTtl, renewalInterval, }: TeleportBotAgentOptions): Promise; /** CLI registration for teleportBotAgent */ export declare const cli: { command: string; description: string; builder: (cmd: Command) => Command; handler: (opts: { app: string; token?: string; workDir?: string; certificateTtl?: string; renewalInterval?: string; }) => Promise; };