UNPKG

tdpw

Version:

CLI tool for uploading Playwright test reports to TestDino platform with Azure storage support

90 lines 2.25 kB
/** * Configuration management with environment detection and validation */ import { Config, CLIOptions } from '../types'; import { EnvironmentUtils, EnvironmentType, CIProvider } from '../utils/env'; /** * Environment detection utilities */ declare class EnvironmentDetectorClass { /** * Determine current environment type */ getEnvironmentType(): EnvironmentType; /** * Determine if we're in development mode */ isDevelopment(): boolean; /** * Determine if we're in production mode */ isProduction(): boolean; /** * Determine if we're in test mode */ isTest(): boolean; /** * Check if running in CI environment */ isCI(): boolean; /** * Get CI provider information */ getCIProvider(): CIProvider; /** * Get the appropriate API URL based on environment */ getApiUrl(): string; /** * Get environment summary for debugging */ getEnvironmentInfo(): Record<string, unknown>; } /** * Enhanced configuration loader and validator */ export declare class ConfigLoader { /** * Validate API token format and environment compatibility */ private validateToken; /** * Resolve configuration values with proper precedence */ private resolveConfigValue; /** * Create configuration from CLI options with environment fallbacks */ createConfig(options: CLIOptions): Config; /** * Log configuration summary for debugging */ private logConfigurationSummary; /** * Get runtime configuration with validation */ getRuntimeConfig(): { timeout: number; retryCount: number; maxFileSize: number; logLevel: string; }; /** * Validate environment for CLI operation */ validateEnvironment(): void; } /** * Global configuration instance */ export declare const configLoader: ConfigLoader; /** * Create a singleton instance of EnvironmentDetector */ export declare const EnvironmentDetector: EnvironmentDetectorClass; /** * Export utilities for external use */ export { EnvironmentUtils }; export type { Config, EnvironmentType, CIProvider }; //# sourceMappingURL=index.d.ts.map