import { Ref } from "vue"; //#region src/composables/useRaf/index.d.ts interface UseRafReturn { /** Request animation frame (cancels pending) */ (): void; /** Cancel pending animation frame */ cancel: () => void; /** Whether an animation frame is pending */ readonly isActive: Readonly>; } /** * Scope-disposed safe requestAnimationFrame. * * @param callback Function to call on animation frame. * @returns Callable that requests frame (canceling pending), with cancel method. * * @see https://0.vuetifyjs.com/composables/system/use-raf * * @example * ```ts * // Basic usage * const update = useRaf((timestamp) => { * // Runs on next animation frame * }) * * update() // Request frame * update() // Cancels previous, requests new (deduplicated) * * // Manual cancel * update.cancel() * * // Check if pending * if (update.isActive.value) { ... } * ``` */ declare function useRaf(callback: (timestamp: DOMHighResTimeStamp) => void): UseRafReturn; //#endregion export { UseRafReturn, useRaf };