/** * Scopes an array of data based on a JSONPath. * Useful when the source data has `n` items you would like to map to * an operation. * The operation will receive a slice of the data based of each item * of the JSONPath provided. * * It also ensures the results of an operation make their way back into * the state's references. * @public * @example * each("$.[*]", * create("SObject", * field("FirstName", sourceValue("$.firstName"))) * ) * @function * @param {DataSource} dataSource - JSONPath referencing a point in `state`. * @param {Operation} operation - The operation needed to be repeated. * @returns {Operation} */ export function each(dataSource: DataSource, operation: Operation): Operation;