/** * Splits an array into smaller batches of a specified maximum size * @param array The input array to split * @param batchSize The maximum size of each batch. If zero, return the array as a single batch. * @returns An array of batches, where each batch is an array of the original elements */ export declare function toBatch(array: T[], batchSize: number): T[][]; /** * Generic function to batch a list and apply an async function to each batch * @remarks This function prevents exeeding the max argument limit of node API endpoints * @param list The input list to batch and process * @param batchFunction The async function to apply to each batch * @param batchSize The maximum size of each batch * @returns A promise that resolves to the flattened results of all batch operations */ export declare function batchListAndCall(list: T[], batchFunction: (batch: T[]) => Promise, batchSize: number): Promise;