/** * A workflow-safe version of `Promise.all` that applies a micro-delay * before parallel execution to ensure correct sequencing of the * deterministic execution counter. Use this when you need to run * multiple durable operations concurrently within a workflow function. * * In most cases, standard `Promise.all` works correctly for Durable * operations (e.g., parallel `condition` calls). Use `Durable.workflow.all` * when you observe counter-sequencing issues with complex parallel * patterns. * * ## Example * * ```typescript * import { Durable } from '@hotmeshio/hotmesh'; * * export async function parallelWorkflow(): Promise<[string, number]> { * const { fetchName, fetchScore } = Durable.workflow.proxyActivities(); * * const [name, score] = await Durable.workflow.all( * fetchName('user-1'), * fetchScore('user-1'), * ); * * return [name, score]; * } * ``` * * @param {...Promise[]} promises - An array of promises to execute concurrently. * @returns {Promise} A promise resolving to an array of results. */ export declare function all(...promises: Promise[]): Promise;