/*! * Copyright (c) 2015-2026 Cisco Systems, Inc. See LICENSE file. */ import { Interceptor } from '@webex/http-core'; /** * @class */ export default class DataChannelAuthTokenInterceptor extends Interceptor { private _refreshDataChannelToken; private _isDataChannelTokenEnabled; constructor(options: any); /** * @returns {DataChannelAuthTokenInterceptor} */ static create(): DataChannelAuthTokenInterceptor; private getRetryKey; private getHeader; /** * Intercepts outgoing requests and refreshes the Data-Channel-Auth-Token * if the current JWT token is expired before the request is sent. * * @param {Object} options - The original request options. * @returns {Promise} Updated request options with refreshed token if needed. */ onRequest(options: any): Promise; /** * Intercept responses and, on 401/403 with `Data-Channel-Auth-Token` header, * attempt to refresh the data channel token and retry the original request once. * * @param {Object} options * @param {Object} reason * @returns {Promise} */ onResponseError(options: any, reason: any): Promise; /** * Retry the failed data channel request after a delay. * Refreshes the Data-Channel-Auth-Token and re-sends the original request. * * @param {Object} options - Original request options. * @returns {Promise} - Resolves on successful retry. */ refreshTokenAndRetryWithDelay(options: any): Promise; }