index.d.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 { request, pipeline, stream, connect, upgrade } from './api'
  17. export * from './cookies'
  18. export * from './fetch'
  19. export * from './file'
  20. export * from './filereader'
  21. export * from './formdata'
  22. export * from './diagnostics-channel'
  23. export * from './websocket'
  24. export * from './content-type'
  25. export * from './cache'
  26. export { Interceptable } from './mock-interceptor'
  27. export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler }
  28. export default Undici
  29. declare namespace Undici {
  30. var Dispatcher: typeof import('./dispatcher').default
  31. var Pool: typeof import('./pool').default;
  32. var RedirectHandler: typeof import ('./handlers').RedirectHandler
  33. var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
  34. var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
  35. var BalancedPool: typeof import('./balanced-pool').default;
  36. var Client: typeof import('./client').default;
  37. var buildConnector: typeof import('./connector').default;
  38. var errors: typeof import('./errors').default;
  39. var Agent: typeof import('./agent').default;
  40. var setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher;
  41. var getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher;
  42. var request: typeof import('./api').request;
  43. var stream: typeof import('./api').stream;
  44. var pipeline: typeof import('./api').pipeline;
  45. var connect: typeof import('./api').connect;
  46. var upgrade: typeof import('./api').upgrade;
  47. var MockClient: typeof import('./mock-client').default;
  48. var MockPool: typeof import('./mock-pool').default;
  49. var MockAgent: typeof import('./mock-agent').default;
  50. var mockErrors: typeof import('./mock-errors').default;
  51. var fetch: typeof import('./fetch').fetch;
  52. var Headers: typeof import('./fetch').Headers;
  53. var Response: typeof import('./fetch').Response;
  54. var Request: typeof import('./fetch').Request;
  55. var FormData: typeof import('./formdata').FormData;
  56. var File: typeof import('./file').File;
  57. var FileReader: typeof import('./filereader').FileReader;
  58. var caches: typeof import('./cache').caches;
  59. }