2025-05-09 17:00:27 +00:00
|
|
|
/**
|
|
|
|
* SmartProxy main module exports
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Legacy exports (to maintain backward compatibility)
|
2025-05-09 21:21:28 +00:00
|
|
|
// Migrated to the new proxies structure
|
|
|
|
export * from './proxies/nftables-proxy/index.js';
|
2025-05-13 12:48:41 +00:00
|
|
|
|
|
|
|
// Export NetworkProxy elements selectively to avoid RouteManager ambiguity
|
|
|
|
export { NetworkProxy, CertificateManager, ConnectionPool, RequestHandler, WebSocketHandler } from './proxies/network-proxy/index.js';
|
|
|
|
export type { IMetricsTracker, MetricsTracker } from './proxies/network-proxy/index.js';
|
2025-05-18 16:30:23 +00:00
|
|
|
// Export models except IAcmeOptions to avoid conflict
|
|
|
|
export type { INetworkProxyOptions, ICertificateEntry, ILogger } from './proxies/network-proxy/models/types.js';
|
2025-05-13 12:48:41 +00:00
|
|
|
export { RouteManager as NetworkProxyRouteManager } from './proxies/network-proxy/models/types.js';
|
|
|
|
|
2025-05-18 16:30:23 +00:00
|
|
|
// Certificate and Port80 modules have been removed - use SmartCertManager instead
|
2025-05-09 17:10:19 +00:00
|
|
|
|
2025-04-04 17:15:50 +00:00
|
|
|
export * from './redirect/classes.redirect.js';
|
2025-05-13 12:48:41 +00:00
|
|
|
|
|
|
|
// Export SmartProxy elements selectively to avoid RouteManager ambiguity
|
|
|
|
export { SmartProxy, ConnectionManager, SecurityManager, TimeoutManager, TlsManager, NetworkProxyBridge, RouteConnectionHandler } from './proxies/smart-proxy/index.js';
|
|
|
|
export { RouteManager } from './proxies/smart-proxy/route-manager.js';
|
2025-05-18 16:30:23 +00:00
|
|
|
// Export smart-proxy models
|
|
|
|
export type { ISmartProxyOptions, IConnectionRecord, IRouteConfig, IRouteMatch, IRouteAction, IRouteTls, IRouteContext } from './proxies/smart-proxy/models/index.js';
|
|
|
|
export type { TSmartProxyCertProvisionObject } from './proxies/smart-proxy/models/interfaces.js';
|
2025-05-13 12:48:41 +00:00
|
|
|
export * from './proxies/smart-proxy/utils/index.js';
|
|
|
|
|
2025-05-09 17:00:27 +00:00
|
|
|
// Original: export * from './smartproxy/classes.pp.snihandler.js'
|
|
|
|
// Now we export from the new module
|
|
|
|
export { SniHandler } from './tls/sni/sni-handler.js';
|
2025-05-09 21:21:28 +00:00
|
|
|
// Original: export * from './smartproxy/classes.pp.interfaces.js'
|
2025-05-18 16:30:23 +00:00
|
|
|
// Now we export from the new module (selectively to avoid conflicts)
|
2025-05-04 12:21:02 +00:00
|
|
|
|
2025-05-09 17:00:27 +00:00
|
|
|
// Core types and utilities
|
|
|
|
export * from './core/models/common-types.js';
|
2025-05-09 14:15:45 +00:00
|
|
|
|
2025-05-18 16:30:23 +00:00
|
|
|
// Export IAcmeOptions from one place only
|
|
|
|
export type { IAcmeOptions } from './proxies/smart-proxy/models/interfaces.js';
|
|
|
|
|
2025-05-09 17:00:27 +00:00
|
|
|
// Modular exports for new architecture
|
|
|
|
export * as forwarding from './forwarding/index.js';
|
2025-05-18 16:30:23 +00:00
|
|
|
// Certificate module has been removed - use SmartCertManager instead
|
2025-05-09 17:10:19 +00:00
|
|
|
export * as tls from './tls/index.js';
|
|
|
|
export * as http from './http/index.js';
|