import type { AxiosRequestConfig , AxiosResponse } from 'axios' ; import type { AccessTokenData } from '../../auth/' ; import type { HttpClient } from '../../http/' ; export const retrieveCookie = ( response ) : Promise < AccessTokenData > => Promise . resolve ( response . data ) ; export const sendRequestWithCookie = < T > ( client , config ) : Promise < AxiosResponse < T > > => client . _sendRequest < T > ( config ) ;