/** * Purpose: Facade re-exporting state management functions from error-groups, cache-limits, and snapshots sub-modules. * Why: Provides a single import point so consumers do not need to know which sub-module owns each function. */ /** * @fileoverview State Manager Facade * Re-exports all state management functions from specialized submodules: * - error-groups.ts: Error deduplication and grouping * - cache-limits.ts: Memory management and source map caching * - snapshots.ts: Stack trace resolution and processing queries */ export { createErrorSignature, processErrorGroup, cleanupStaleErrorGroups, flushErrorGroups, type ProcessedLogEntry, } from './error-groups.js'; export { canTakeScreenshot, recordScreenshot, clearScreenshotTimestamps, estimateBufferMemory, checkMemoryPressure, getMemoryPressureState, resetMemoryPressureState, isNetworkBodyCaptureDisabled, setSourceMapEnabled, isSourceMapEnabled, clearSourceMapCache, MEMORY_SOFT_LIMIT, MEMORY_HARD_LIMIT, MEMORY_CHECK_INTERVAL_MS, MEMORY_AVG_LOG_ENTRY_SIZE, MEMORY_AVG_WS_EVENT_SIZE, MEMORY_AVG_NETWORK_BODY_SIZE, MEMORY_AVG_ACTION_SIZE, MAX_PENDING_BUFFER } from './cache-limits.js'; export { measureContextSize, checkContextAnnotations, getContextWarning, resetContextWarning, resolveStackTrace, getProcessingQueriesState, addProcessingQuery, removeProcessingQuery, isQueryProcessing, cleanupStaleProcessingQueries } from './snapshots.js'; import type { DebugLogEntry } from '../types/index.js'; /** * Get all debug log entries */ export declare function getDebugLog(): DebugLogEntry[]; /** * Add entry to debug log buffer. * Uses batch splice (25% eviction) instead of per-entry shift() to amortize O(n) cost. */ export declare function addDebugLogEntry(entry: DebugLogEntry): void; /** * Clear debug log buffer */ export declare function clearDebugLog(): void; //# sourceMappingURL=state-manager.d.ts.map