/** * Batch multiple state updates into a single render. * Useful for performance optimization when you want to avoid multiple re-renders. * @param fn - Function containing multiple state updates * @returns The return value of the function * * @example * batch(() => { * storeA.dispatch({ type: "SET", value: 1 }); * storeB.dispatch({ type: "SET", value: 2 }); * storeC.dispatch({ type: "SET", value: 3 }); * }); */ export declare function batch(fn: () => T, mode?: "sync" | "async"): T; //# sourceMappingURL=batch.d.ts.map