export type RafThrottledCallback = { schedule: (value: T, options?: { immediate?: boolean; }) => void; cancel: () => void; }; /** * Returns helpers that ensure the provided callback runs at most once per animation frame. * Subsequent schedules within the same frame coalesce to the latest value. Pass `{ immediate: true }` * when the update must run right away (e.g., on drag end). */ export declare function useRafThrottledCallback(callback: (value: T) => void): RafThrottledCallback;