import { ICancelable } from './types';
export declare function runInNextFrame(callback: () => void): () => void;
export declare function runOnceInNextFrame<T extends (...args: unknown[]) => void>(callback: T): T & ICancelable;
export declare const useRunOnceInNextFrame: <T extends (...args: unknown[]) => void>(cb: T, disabled: boolean) => T & Partial<ICancelable>;
