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;
/**
 * Will return set  timeout as a function which will clean itself up.
 */
export declare const useSetTimeout: (opts?: Opts) => (handler: Function, timeout?: number | undefined, ...args: any[]) => void;
export {};
