#!/usr/bin/env ts-node /** * XDG Launch: Unified Configuration Bridge * * Single command to launch FastAPI application in different modes (native, docker, docker-dev) * using profile-based XDG configuration as the single source of truth. * * Eliminates .env files and manual environment variable management. * * @module xdg-launch * @version 0.8.0 */ import { ProfileConfig } from "../lib/types/config"; /** * Launch mode options */ type LaunchMode = "native" | "docker" | "docker-dev"; /** * Launch configuration options */ interface LaunchOptions { mode: LaunchMode; profile: string; port?: number; verbose: boolean; test: boolean; noSecret: boolean; } /** * Environment variables map */ type EnvVars = Record; /** * Parse command-line arguments * * @param argv - Command-line arguments * @returns Parsed launch options */ declare function parseArguments(argv: string[]): LaunchOptions; /** * Load XDG profile configuration * * @param profileName - Profile name * @returns Profile configuration */ declare function loadProfile(profileName: string): ProfileConfig; /** * Build environment variables from profile configuration * * Maps XDG config fields to service-specific environment variables. * * @param config - Profile configuration * @param mode - Launch mode * @param options - Launch options * @returns Environment variables map */ declare function buildEnvVars(config: ProfileConfig, mode: LaunchMode, options: LaunchOptions): EnvVars; /** * Validate required configuration * * Ensures all required service variables are present and well-formed. * * @param envVars - Environment variables to validate * @param profile - Profile name (for error messages) */ declare function validateConfig(envVars: EnvVars, profile: string): void; /** * Filter secrets from environment variables for verbose logging * * @param envVars - Environment variables * @returns Filtered environment variables (secrets masked) */ declare function filterSecrets(envVars: EnvVars): EnvVars; export { parseArguments, loadProfile, buildEnvVars, validateConfig, filterSecrets }; //# sourceMappingURL=xdg-launch.d.ts.map