index.d.ts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import Dispatcher from'./types/dispatcher'
  2. import { setGlobalDispatcher, getGlobalDispatcher } from './types/global-dispatcher'
  3. import { setGlobalOrigin, getGlobalOrigin } from './types/global-origin'
  4. import Pool from'./types/pool'
  5. import { RedirectHandler, DecoratorHandler } from './types/handlers'
  6. import BalancedPool from './types/balanced-pool'
  7. import Client from'./types/client'
  8. import buildConnector from'./types/connector'
  9. import errors from'./types/errors'
  10. import Agent from'./types/agent'
  11. import MockClient from'./types/mock-client'
  12. import MockPool from'./types/mock-pool'
  13. import MockAgent from'./types/mock-agent'
  14. import mockErrors from'./types/mock-errors'
  15. import ProxyAgent from'./types/proxy-agent'
  16. import { request, pipeline, stream, connect, upgrade } from './types/api'
  17. export * from './types/cookies'
  18. export * from './types/fetch'
  19. export * from './types/file'
  20. export * from './types/filereader'
  21. export * from './types/formdata'
  22. export * from './types/diagnostics-channel'
  23. export * from './types/websocket'
  24. export * from './types/content-type'
  25. export * from './types/cache'
  26. export { Interceptable } from './types/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('./types/dispatcher').default
  31. var Pool: typeof import('./types/pool').default;
  32. var RedirectHandler: typeof import ('./types/handlers').RedirectHandler
  33. var DecoratorHandler: typeof import ('./types/handlers').DecoratorHandler
  34. var createRedirectInterceptor: typeof import ('./types/interceptors').createRedirectInterceptor
  35. var BalancedPool: typeof import('./types/balanced-pool').default;
  36. var Client: typeof import('./types/client').default;
  37. var buildConnector: typeof import('./types/connector').default;
  38. var errors: typeof import('./types/errors').default;
  39. var Agent: typeof import('./types/agent').default;
  40. var setGlobalDispatcher: typeof import('./types/global-dispatcher').setGlobalDispatcher;
  41. var getGlobalDispatcher: typeof import('./types/global-dispatcher').getGlobalDispatcher;
  42. var request: typeof import('./types/api').request;
  43. var stream: typeof import('./types/api').stream;
  44. var pipeline: typeof import('./types/api').pipeline;
  45. var connect: typeof import('./types/api').connect;
  46. var upgrade: typeof import('./types/api').upgrade;
  47. var MockClient: typeof import('./types/mock-client').default;
  48. var MockPool: typeof import('./types/mock-pool').default;
  49. var MockAgent: typeof import('./types/mock-agent').default;
  50. var mockErrors: typeof import('./types/mock-errors').default;
  51. var fetch: typeof import('./types/fetch').fetch;
  52. var caches: typeof import('./types/cache').caches;
  53. }