// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. type logLevel = 'ERROR' | 'WARNING' | 'INFO'; type BaseRequestGroupLabel = 'Login' | 'Cold Start' | 'Notification' | 'DeepLink' | 'WebSocket Reconnect' | 'Server Switch'; type RequestGroupLabel = BaseRequestGroupLabel | `${BaseRequestGroupLabel} Deferred`; type ClientOptions = { body?: any; method?: string; noRetry?: boolean; timeoutInterval?: number; headers?: Record; groupLabel?: RequestGroupLabel; }; type ClientErrorIntl = {defaultMessage?: string; id: string; values?: Record} | {defaultMessage?: string; id: string; values?: Record} | {id: string; defaultMessage?: string; values?: Record} | {id: string; defaultMessage?: string; values?: Record}; interface ClientErrorProps { details?: unknown; intl?: ClientErrorIntl; url: string; server_error_id?: string; status_code?: number; headers?: Record; message: string; }