import { createToken } from '@tinkoff/dippy' ; import type { ApiService , HttpClient } from '@tramvai/http-client' ; import type { TinkoffRequestOptions , Agent } from '@tramvai/tinkoff-request-http-client-adapter' ; export type HttpClientFactoryOptions = TinkoffRequestOptions & { name : string ; } ; description export const HTTP_CLIENT_FACTORY = createToken < ( options : HttpClientFactoryOptions ) => HttpClient > ( 'HTTP_CLIENT_FACTORY' ) ; description export const HTTP_CLIENT = createToken < HttpClient > ( 'HTTP_CLIENT' ) ; description export const HTTP_CLIENT_AGENT = createToken < { http : Agent ; https : Agent ; } > ( 'HTTP_CLIENT_AGENT' ) ; description export const API_CLIENT_PASS_HEADERS = createToken < string [ ] > ( 'apiClientPassHeaders' , { multi : true , } ) ; description export const PAPI_SERVICE = createToken < ApiService > ( 'papi service' ) ;