@tinytapanalytics/sdk
Version:
Behavioral psychology platform that detects visitor frustration, predicts abandonment, and helps you save at-risk conversions in real-time
86 lines • 3.51 kB
TypeScript
/**
* Core SDK exports for tree-shaking optimization
* Import only what you need to minimize bundle size
*/
export { ErrorHandler } from './core/ErrorHandler';
export { NetworkManager } from './core/NetworkManager';
export { PrivacyManager } from './core/PrivacyManager';
export type { TinyTapAnalyticsConfig, UserContext, EventData, TrackingOptions, ConversionData, PrivacySettings, DataType } from './types/index';
import type { TinyTapAnalyticsConfig } from './types/index';
import TinyTapAnalyticsSDK from './index';
/**
* Async imports for optional features (tree-shakeable)
*/
/**
* Load Environment Detection (adds ~2KB)
*/
export declare const loadEnvironmentDetector: () => Promise<typeof import("./core/EnvironmentDetector").EnvironmentDetector>;
/**
* Load Event Queue with advanced batching (adds ~3KB)
*/
export declare const loadEventQueue: () => Promise<typeof import("./core/EventQueue").EventQueue>;
/**
* Load Shadow DOM Manager for UI isolation (adds ~4KB)
*/
export declare const loadShadowDOMManager: () => Promise<typeof import("./core/ShadowDOMManager").ShadowDOMManager>;
/**
* Load Auto-tracking features (adds ~5KB)
*/
export declare const loadAutoTracking: () => Promise<typeof import("./features/AutoTracking").AutoTracking>;
/**
* Load Advanced Analytics features (adds ~3KB)
*/
export declare const loadAdvancedAnalytics: () => Promise<typeof import("./features/AdvancedAnalytics").AdvancedAnalytics>;
/**
* Load A/B Testing features (adds ~4KB)
*/
export declare const loadABTesting: () => Promise<typeof import("./features/ABTesting").ABTesting>;
/**
* Load Heatmap features (adds ~6KB)
*/
export declare const loadHeatmap: () => Promise<typeof import("./features/Heatmap").Heatmap>;
/**
* Load Performance Monitoring (adds ~2KB)
*/
export declare const loadPerformanceMonitoring: () => Promise<typeof import("./features/PerformanceMonitoring").PerformanceMonitoring>;
/**
* Load all optional features at once
*/
export declare const loadAllFeatures: () => Promise<{
EnvironmentDetector: typeof import("./core/EnvironmentDetector").EnvironmentDetector;
EventQueue: typeof import("./core/EventQueue").EventQueue;
ShadowDOMManager: typeof import("./core/ShadowDOMManager").ShadowDOMManager;
AutoTracking: typeof import("./features/AutoTracking").AutoTracking;
AdvancedAnalytics: typeof import("./features/AdvancedAnalytics").AdvancedAnalytics;
ABTesting: typeof import("./features/ABTesting").ABTesting;
Heatmap: typeof import("./features/Heatmap").Heatmap;
PerformanceMonitoring: typeof import("./features/PerformanceMonitoring").PerformanceMonitoring;
}>;
/**
* Create minimal SDK instance (core features only, ~8KB)
*/
export declare const createMinimalSDK: (config: TinyTapAnalyticsConfig) => TinyTapAnalyticsSDK;
/**
* Create enhanced SDK instance with common features (~15KB)
*/
export declare const createEnhancedSDK: (config: TinyTapAnalyticsConfig) => Promise<TinyTapAnalyticsSDK>;
/**
* Create full-featured SDK instance (~25KB)
*/
export declare const createFullSDK: (config: TinyTapAnalyticsConfig) => Promise<TinyTapAnalyticsSDK>;
/**
* Bundle size analysis
*/
export declare const getBundleInfo: () => {
core: string;
environmentDetector: string;
eventQueue: string;
shadowDOMManager: string;
autoTracking: string;
advancedAnalytics: string;
abTesting: string;
heatmap: string;
performanceMonitoring: string;
total: string;
};
//# sourceMappingURL=core.d.ts.map