import type { MemoryMetrics, MemoryMonitorConfig } from '../types'; export interface UseMemoryMonitorResult { /** Current memory metrics */ metrics: MemoryMetrics; /** Start memory monitoring */ start: () => void; /** Stop memory monitoring */ stop: () => void; /** Reset all metrics */ reset: () => void; /** Get a snapshot of current metrics */ getSnapshot: () => MemoryMetrics; /** Whether memory API is available */ isAvailable: boolean; } /** * Hook for monitoring JavaScript heap memory usage * * Uses the performance.memory API to sample memory at configurable intervals. * Falls back gracefully when the API is unavailable. * * @param config - Optional configuration for sampling interval */ export declare function useMemoryMonitor(config?: Partial): UseMemoryMonitorResult; //# sourceMappingURL=useMemoryMonitor.d.ts.map