/** * Network Event Factory * Creates and emits network-related events with type safety */ import type { NetworkQualityEvent, NetworkInfoEvent, NetworkConfigOverrideEvent, NetworkPresetEvent, NetworkClientHintsEvent, NetworkAutoDetectionEvent, NetworkManualUpdateEvent, EmitConfigOverrideOptions, EmitPresetAppliedOptions, EmitQualityChangeOptions, EmitAutoDetectionOptions, EmitConfigRestoredOptions, EventOptions, NetworkInfo, EmitPresetChangedOptions, NetworkClientHints as NetworkHints } from '@plyaz/types/api'; import { BaseEventFactory } from './base'; import type { EventEmitter } from '../../pubsub'; /** * Factory for creating network events */ export declare class NetworkEventFactory extends BaseEventFactory<'network'> { constructor(emitter: EventEmitter); /** * Create and emit a network quality change event */ emitQualityChange(options: EmitQualityChangeOptions): NetworkQualityEvent; /** * Create and emit a network info update event */ emitInfoUpdate(current: NetworkInfo, previous?: NetworkInfo, options?: EventOptions): NetworkInfoEvent; /** * Create and emit a network config override event */ emitConfigOverride(options: EmitConfigOverrideOptions): NetworkConfigOverrideEvent; /** * Create and emit a network config restored event */ emitConfigRestored(options: EmitConfigRestoredOptions): NetworkConfigOverrideEvent; /** * Create and emit a network preset applied event */ emitPresetApplied(options: EmitPresetAppliedOptions): NetworkPresetEvent; /** * Create and emit a network preset changed event */ emitPresetChanged(options: EmitPresetChangedOptions): NetworkPresetEvent; /** * Create and emit a network client hints updated event */ emitHintsUpdated(current: NetworkHints, source: 'auto' | 'headers' | 'manual', previous?: NetworkHints, options?: EventOptions): NetworkClientHintsEvent; /** * Create and emit a network auto detection event */ emitAutoDetection(options: EmitAutoDetectionOptions): NetworkAutoDetectionEvent; /** * Create and emit a network manual update event */ emitManualUpdate(updates: Partial, source: 'user' | 'api' | 'config', reason?: string, options?: EventOptions): NetworkManualUpdateEvent; /** * Detect changes between network info objects */ private detectInfoChanges; } //# sourceMappingURL=network.d.ts.map