/** * postgres-mcp - CLI Arguments Parser (Test-Only) * * Standalone (non-Commander) argument parser used exclusively by unit tests. * The production entry point is `cli.ts` which uses Commander.js. */ import type { TransportType, DatabaseConfig, OAuthConfig } from "../types/index.js"; /** * Parsed CLI configuration */ export interface ParsedArgs { /** Server transport type */ transport: TransportType; /** HTTP port (for http/sse transports) */ port?: number; /** Server bind host (for http/sse transports) */ serverHost?: string; /** Database configuration */ database?: DatabaseConfig; /** OAuth configuration */ oauth?: OAuthConfig; /** Tool filter string */ toolFilter?: string; /** Log level */ logLevel?: "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency"; /** Whether to exit after printing help/version */ shouldExit: boolean; /** Audit log file path (enables audit logging when set) */ auditLogPath?: string; /** Whether to redact tool arguments from audit entries */ auditRedact?: boolean; /** Whether to log read-scoped tools */ auditReads?: boolean; /** Maximum audit log file size in bytes before rotation */ auditLogMaxSize?: number; } /** * Parse command line arguments */ export declare function parseArgs(argv?: string[]): ParsedArgs; /** * Print help message */ export declare function printHelp(): void; //# sourceMappingURL=args.d.ts.map