interface Opts {
    cleanup: 'next-effect' | 'unmount';
}
/**
 * Will return request animation frame as a function which will clean itself up.
 */
export declare const useRequestAnimationFrame: (opts?: Opts) => ((handler: FrameRequestCallback) => void);
export {};
