/**
 * Imperative tracker returned by {@link useStreamRate}.
 *
 * Call `tick()` on each stream snapshot inside the `for await` loop.
 * Call `summary()` when the stream ends to log aggregate stats.
 */
export interface StreamRateTracker {
    /** Record a stream snapshot arrival. */
    tick(messageCount: number): void;
    /** Log aggregate statistics for the completed stream. */
    summary(): void;
}
/**
 * Dev-only hook that returns an imperative {@link StreamRateTracker}.
 *
 * The tracker is designed to be called inside a `useEffect` async
 * loop (not during render), so it uses a ref-backed mutable object
 * rather than React state.
 *
 * In production the hook returns a no-op tracker.
 */
export declare function useStreamRate(): StreamRateTracker;
//# sourceMappingURL=use-stream-rate.d.ts.map