/** * Configuration Module * * Handles loading and validation of environment variables. * All secrets are loaded from environment variables only. */ export type LogLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical"; export interface ServerConfig { botToken: string; logLevel: LogLevel; requestTimeout: number; maxRetries: number; rateLimitPerMinute: number; webhookUrl?: string; webhookSecret?: string; webhookPort?: number; healthPort?: number; debug: boolean; } export declare class ConfigurationError extends Error { constructor(message: string); } /** * Load configuration from environment variables. * Validates all required values and provides sensible defaults. * * @throws ConfigurationError if required values are missing or invalid */ export declare function loadConfig(): ServerConfig; /** * Get current configuration. * Throws if config hasn't been loaded yet. */ export declare function getConfig(): ServerConfig; /** * Clear cached configuration (useful for testing) */ export declare function clearConfigCache(): void; /** * Mask sensitive values for logging */ export declare function getSafeConfigForLogging(): Record; //# sourceMappingURL=index.d.ts.map