import type { Sec } from "./types"; /** * Reads which way a scrub gesture is travelling, so a prefetch window can spend * its budget on the side of the playhead the hand is moving toward. * * The heading spans a bounded ring of recent samples, so one jittery pointer * move cannot swing it. A step opposing the ring's heading drops the samples * behind it, leaving the reversal as the only evidence of where the gesture is * going. */ export declare class ScrubTrajectory { private readonly capacity; private readonly positionsS; private readonly timesMs; private count; private writeIndex; constructor(capacity?: number); sample(positionS: Sec, atMs: number): void; /** * Which way the gesture is travelling: 1 forward, -1 backward, 0 when there * is not enough of a gesture to say. The direction survives being uncertain * about how far, which is all a window split needs. */ heading(): -1 | 0 | 1; reset(): void; private netDisplacementS; private indexFromNewest; private indexFromOldest; }