/** * Network Quality Presets * Centralized configuration presets for different network conditions * These presets can be easily updated and extended */ import { NETWORK_QUALITY } from '@plyaz/types/api'; import type { NetworkInfo, NetworkQualityPreset, NetworkPresetName } from '@plyaz/types/api'; /** * Network quality presets registry * Easily extendable with new presets */ export declare const networkPresets: Record; /** * Get preset by name */ export declare function getNetworkPreset(name: NetworkPresetName): NetworkQualityPreset; /** * Get preset for network quality */ export declare function getPresetForQuality(quality: NETWORK_QUALITY): NetworkQualityPreset | null; /** * Get preset based on network info */ export declare function getPresetForNetworkInfo(networkInfo: NetworkInfo): NetworkQualityPreset | null; /** * Get all presets matching conditions */ export declare function getMatchingPresets(networkInfo: NetworkInfo, quality: NETWORK_QUALITY): NetworkQualityPreset[]; /** * Create custom preset */ export declare function createCustomPreset(id: string, name: string, targetQuality: NETWORK_QUALITY, config: Partial): NetworkQualityPreset; /** * Merge multiple presets */ export declare function mergePresets(...presets: NetworkQualityPreset[]): NetworkQualityPreset['config']; /** * Validate preset configuration */ export declare function validatePreset(preset: NetworkQualityPreset): boolean; /** * Export preset names for easy access */ export declare const NetworkPresetNames: { readonly OFFLINE_FIRST: "offline-first"; readonly DATA_SAVER: "data-saver"; readonly SLOW_CONNECTION: "slow-connection"; readonly FAIR_CONNECTION: "fair-connection"; readonly GOOD_CONNECTION: "good-connection"; readonly EXCELLENT_CONNECTION: "excellent-connection"; readonly AGGRESSIVE_CACHE: "aggressive-cache"; readonly REALTIME: "realtime"; readonly BACKGROUND_SYNC: "background-sync"; }; //# sourceMappingURL=presets.d.ts.map