import { Command } from 'commander'; import { LogLevel } from 'bunyan'; import { MissingProgramOption } from '../errors'; import { ServiceNames } from '../programs/types'; import { Seconds } from '@cardano-sdk/core'; import { BuildInfo as ServiceBuildInfo } from '../../Http'; export declare const DEFAULT_HEALTH_CHECK_CACHE_TTL: Seconds; export declare const LAST_ROS_EPOCHS_DEFAULT = 10; export declare enum CommonOptionsDescriptions { ApiUrl = "API URL", BuildInfo = "Service build info", CardanoNodeConfigPath = "Cardano node config path", DbCacheTtl = "Cache TTL in seconds between 60 and 172800 (two days), an option for database related operations", DisableDbCache = "Disable DB cache", DumpOnly = "Dumps the input arguments and exits. Used for tests", HeartbeatInterval = "WebSocket client heartbeat interval in seconds", HeartbeatTimeout = "WebSocket client heartbeat timeout in seconds", EnableMetrics = "Enable Prometheus Metrics", LastRosEpochs = "Number of epochs over which lastRos is computed", LoggerMinSeverity = "Log level", ServiceDiscoveryBackoffFactor = "Exponential backoff factor for service discovery", ServiceDiscoveryTimeout = "Timeout for service discovery attempts", WebSocketApiUrl = "WebSocket API server URL" } export declare type CommonProgramOptions = { apiUrl: URL; buildInfo?: ServiceBuildInfo; cardanoNodeConfigPath?: string; dbCacheTtl: Seconds | 0; disableDbCache?: boolean; dumpOnly?: boolean; enableMetrics?: boolean; heartbeatInterval?: number; heartbeatTimeout?: number; lastRosEpochs?: number; loggerMinSeverity?: LogLevel; serviceDiscoveryBackoffFactor?: number; serviceDiscoveryTimeout?: number; webSocketApiUrl?: URL; } & { [k in keyof typeof ServiceNames as `${Uncapitalize}ProviderUrl`]?: string; }; export declare const withCommonOptions: (command: Command, apiUrl: URL) => Command; export declare const missingProviderUrlOption: (service: string, provider: ServiceNames) => MissingProgramOption; //# sourceMappingURL=common.d.ts.map