import type { Ref } from 'vue-demi';
export default function useRaf<Callback extends Function>(callback: Callback): (...args: any[]) => void;
type Callback<T> = (ori: T) => T;
export declare function useRafState<T>(defaultState: T | (() => T)): [Ref<T>, (updater: Callback<T>) => void];
export {};
