/** * A utility for scheduling and managing microtasks in a queue. * Tasks are executed in FIFO order on the microtask queue, ensuring they run * after the current synchronous execution but before the next macrotask. * * @example * ```typescript * import { addTask } from './taskScheduler'; * * addTask(() => console.log('This will run in the microtask queue')); * console.log('This runs first'); * ``` */ /** * Adds a new task to the queue and schedules execution. * * @param task - Function to be executed in the microtask queue * * @example * ```typescript * addTask(() => { * // This code will run in the microtask queue * processData(); * }); * ``` */ export declare function addTask(task: () => void): void;