/** * Adaptive Performance Configuration * Connection-aware and environment-adaptive optimization */ import type { EffectiveConnectionType, PerformanceConfig } from '@plyaz/types/api'; /** * Get current connection type */ export declare function getConnectionType(): EffectiveConnectionType; /** * Get adaptive configuration based on connection * Automatically adjusts timeouts, cache times, and retry strategies */ export declare function getAdaptiveConfig(): PerformanceConfig; /** * Monitor connection changes and adapt configuration */ export declare function setupConnectionMonitoring(onConnectionChange: (config: PerformanceConfig) => void): () => void; /** * Get recommended batch size based on connection */ export declare function getAdaptiveBatchSize(): number; /** * Get recommended page size for pagination */ export declare function getAdaptivePageSize(): number; /** * Should prefetch data based on connection */ export declare function shouldPrefetch(): boolean; /** * Should use progressive loading */ export declare function shouldUseProgressive(): boolean; //# sourceMappingURL=adaptive.d.ts.map