import { Task, Batch } from './types'; /** * Schedules a given task to be executed at the end of a current batch, or runs it immediately if no batch is active. * @param task * @private */ export declare const scheduleTask: (task: Task) => void; /** * Cancels the scheduling of a previously scheduled task. * @param task * @private */ export declare const cancelScheduledTask: (task: Task) => void; /** * Starts a batch, scheduling Facet updates within the cb to be executed at the end of the batch. * @param b will be executed immediately to collect Facet changes * * Application code should not use this directly. For batching within transitions, * use `startFacetTransition` or `useFacetTransition` instead. */ export declare const batch: (b: Batch) => void; /** * Special type of batch that ensures all tasks are ran at the end (unless nested on another transition) * @param b will be executed immediately to collect Facet changes * * @private users should use startFacetTransition and useFacetTransition instead */ export declare const batchTransition: (b: Batch) => void;