/** A single pointer sample recorded during a drag gesture. */ export interface VelocitySample { /** Drag offset in the dismiss direction (px) at sample time */ offset: number; /** Timestamp in ms (Date.now()) */ time: number; } /** Sliding window (ms) of samples used to compute release velocity. */ export declare const VELOCITY_WINDOW_MS = 100; /** * Append a pointer sample, pruning entries that fall outside the sliding * window (plus a hard cap as a memory guard). Mutates and returns `samples`. */ export declare const appendVelocitySample: (samples: VelocitySample[], sample: VelocitySample) => VelocitySample[]; /** * Compute release velocity (px/ms, positive = dismiss direction) from the * samples recorded within the sliding window before `releaseTime`. * * Using only recent samples means a pause followed by a flick reports the * flick's velocity — not the whole-gesture average, which would dilute it * to near zero. */ export declare const getReleaseVelocity: (samples: VelocitySample[], releaseTime: number) => number; //# sourceMappingURL=drag-velocity.d.ts.map