/** * Types for the tunnel command */ /** * Tunnel target types */ export type TunnelTarget = 'rds' | 'opensearch' | 'ec2' | 'lb'; export declare const OPENSEARCH_REMOTE_PORT = 443; export declare const OPENSEARCH_DEFAULT_LOCAL_PORT = 9200; /** * Options for the tunnel command */ export interface TunnelOptions { profile?: string; localPort?: string; cluster?: string; domain?: string; /** * Commander populates 'color' for the negatable `--no-color` flag (default * true, false when the flag is passed) - there is no `noColor` property. * See src/commands/seed/index.ts for the reference pattern this mirrors. */ color?: boolean; verbose?: boolean; } /** * System configuration for a known system with an explicit EC2 tag. */ export interface ExplicitSystemConfig { /** EC2 Name tag to find bastion/jumpbox */ ec2Tag: string; /** Default RDS cluster name */ defaultCluster?: string; /** Default database port */ defaultPort: number; } /** * Default system configuration for new/unknown systems. * Does not carry ec2Tag — resolveBastionTag derives the tag from the AWS account alias. */ export interface DefaultSystemConfig { /** Default RDS cluster name */ defaultCluster?: string; /** Default database port */ defaultPort: number; } /** * System configurations * roma = old world (bastion-host, MySQL) * others = new world (jumpbox, typically PostgreSQL) */ export declare const SYSTEM_CONFIGS: Record; /** * Default configuration for new/unknown systems */ export declare const DEFAULT_SYSTEM_CONFIG: DefaultSystemConfig; /** * Get system configuration */ export declare function getSystemConfig(system: string): ExplicitSystemConfig | DefaultSystemConfig; /** * Map database engine to standard port * @param engine Database engine string from RDS metadata * @returns Standard port for the engine, or undefined if unknown */ export declare function getPortForEngine(engine: string | undefined): number | undefined; //# sourceMappingURL=types.d.ts.map