/** * Runs a callback as soon as possible after next repaint. * * This can be helpful for operations that need to wait until the * next repaint is complete before performing a follow-up task. * When you need a small delay after the next repaint, perhaps for * batching DOM updates or deferring non-critical tasks right after a * frame is rendered. */ export declare const runAfterRepaint: (fn: () => void) => void; /** * Runs a callback after any micro-tasks or pending callbacks are * processed and just before the next repaint. * * This can be useful if you want to ensure the callback runs at the * optimal time for rendering updates but want to defer its execution. */ export declare const runBeforeRepaint: (fn: () => void) => void; /** * Runs a callback immediately before the next repaint. * * This is ideal for animations or visual updates that should occur * right before the next screen repaint for smooth and efficient * rendering. */ export declare const runImmediatelyBeforeRepaint: (fn: () => void) => void; /** * Runs a callback immediately after the next event loop tick. * * This can be useful for deferring the execution of some code until * after the current call stack has cleared and other microtasks have * been processed. */ export declare const runAfterEventLoopTick: (fn: () => void) => void; /** * Waits a microtask. * * Schedules a microtask but should be used to allow any other microtasks * (like other event handlers) to complete first. */ export declare const waitAMicrotask: () => Promise;