@vizzly-testing/cli
Version:
Visual review platform for UI developers and designers
60 lines (59 loc) • 1.62 kB
TypeScript
/**
* Environment Configuration Utility
* Centralized access to environment variables with proper defaults
*/
/**
* Get API token from environment
* @returns {string|undefined} API token
*/
export function getApiToken(): string | undefined;
/**
* Get API URL from environment
* @returns {string} API URL with default
*/
export function getApiUrl(): string;
/**
* Get log level from environment
* @returns {string} Log level with default
*/
export function getLogLevel(): string;
/**
* Get user agent from environment
* @returns {string|undefined} User agent string
*/
export function getUserAgent(): string | undefined;
/**
* Check if Vizzly is enabled in client
* @returns {boolean} Whether Vizzly is enabled
*/
export function isVizzlyEnabled(): boolean;
/**
* Get server URL from environment
* @returns {string|undefined} Server URL
*/
export function getServerUrl(): string | undefined;
/**
* Get build ID from environment
* @returns {string|undefined} Build ID
*/
export function getBuildId(): string | undefined;
/**
* Get parallel ID from environment
* @returns {string|undefined} Parallel ID
*/
export function getParallelId(): string | undefined;
/**
* Check if TDD mode is enabled
* @returns {boolean} Whether TDD mode is enabled
*/
export function isTddMode(): boolean;
/**
* Set Vizzly enabled state (for client)
* @param {boolean} enabled - Whether to enable Vizzly
*/
export function setVizzlyEnabled(enabled: boolean): void;
/**
* Get all Vizzly environment variables
* @returns {Object} All environment configuration
*/
export function getAllEnvironmentConfig(): any;