index.d.ts 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import Dispatcher from'./dispatcher'
  2. import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher'
  3. import { setGlobalOrigin, getGlobalOrigin } from './global-origin'
  4. import Pool from'./pool'
  5. import { RedirectHandler, DecoratorHandler } from './handlers'
  6. import BalancedPool from './balanced-pool'
  7. import Client from'./client'
  8. import buildConnector from'./connector'
  9. import errors from'./errors'
  10. import Agent from'./agent'
  11. import MockClient from'./mock-client'
  12. import MockPool from'./mock-pool'
  13. import MockAgent from'./mock-agent'
  14. import mockErrors from'./mock-errors'
  15. import ProxyAgent from'./proxy-agent'
  16. import EnvHttpProxyAgent from './env-http-proxy-agent'
  17. import RetryHandler from'./retry-handler'
  18. import RetryAgent from'./retry-agent'
  19. import { request, pipeline, stream, connect, upgrade } from './api'
  20. import interceptors from './interceptors'
  21. export * from './util'
  22. export * from './cookies'
  23. export * from './eventsource'
  24. export * from './fetch'
  25. export * from './file'
  26. export * from './filereader'
  27. export * from './formdata'
  28. export * from './diagnostics-channel'
  29. export * from './websocket'
  30. export * from './content-type'
  31. export * from './cache'
  32. export { Interceptable } from './mock-interceptor'
  33. export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent }
  34. export default Undici
  35. declare namespace Undici {
  36. var Dispatcher: typeof import('./dispatcher').default
  37. var Pool: typeof import('./pool').default;
  38. var RedirectHandler: typeof import ('./handlers').RedirectHandler
  39. var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
  40. var RetryHandler: typeof import ('./retry-handler').default
  41. var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
  42. var BalancedPool: typeof import('./balanced-pool').default;
  43. var Client: typeof import('./client').default;
  44. var buildConnector: typeof import('./connector').default;
  45. var errors: typeof import('./errors').default;
  46. var Agent: typeof import('./agent').default;
  47. var setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher;
  48. var getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher;
  49. var request: typeof import('./api').request;
  50. var stream: typeof import('./api').stream;
  51. var pipeline: typeof import('./api').pipeline;
  52. var connect: typeof import('./api').connect;
  53. var upgrade: typeof import('./api').upgrade;
  54. var MockClient: typeof import('./mock-client').default;
  55. var MockPool: typeof import('./mock-pool').default;
  56. var MockAgent: typeof import('./mock-agent').default;
  57. var mockErrors: typeof import('./mock-errors').default;
  58. var fetch: typeof import('./fetch').fetch;
  59. var Headers: typeof import('./fetch').Headers;
  60. var Response: typeof import('./fetch').Response;
  61. var Request: typeof import('./fetch').Request;
  62. var FormData: typeof import('./formdata').FormData;
  63. var File: typeof import('./file').File;
  64. var FileReader: typeof import('./filereader').FileReader;
  65. var caches: typeof import('./cache').caches;
  66. var interceptors: typeof import('./interceptors').default;
  67. }