/** * Thresholds for flagging a route as slow, based on the quote's * `avg_completion_time`. Both are open for discussion — typical routes * complete in well under a minute, while e.g. withdrawals to Bitcoin * average around 20 minutes. */ /** At or above this the estimated time is highlighted in the warning color. */ export declare const SLOW_ROUTE_THRESHOLD_MS: number; /** At or above this the user must confirm before the swap flow starts. */ export declare const VERY_SLOW_ROUTE_THRESHOLD_MS: number; export type RouteSpeed = 'normal' | 'slow' | 'very_slow'; export declare function resolveRouteSpeedFromMs(ms: number | undefined): RouteSpeed; /** Classify a quote's `avg_completion_time` ("H:MM:SS.fff"). Unparsable input is treated as normal. */ export declare function resolveRouteSpeed(avgCompletionTime: string | undefined): RouteSpeed; /** Text color for an estimate: yellow for slow, red for very slow, or the given default. */ export declare function routeSpeedTextClass(speed: RouteSpeed, defaultClass: string): string; export declare function isVerySlowRoute(avgCompletionTime: string | undefined): boolean; //# sourceMappingURL=routeSpeed.d.ts.map