/** * Execute a sequence of operations. * Wraps `language-common/execute`, and prepends initial state for mailgun. * @example * execute( * create('foo'), * delete('bar') * )(state) * @private * @param {Operations} operations - Operations to be performed. * @returns {Operation} */ export function execute(...operations: Operations): Operation; /** * Create an event * @public * @example * // Fetch attachment from URL * send({ * from: 'from_email', * to: 'to_email', * subject: 'Your Subject', * text: 'Your message goes here', * attachment: { * url: 'www.google.com/doodle.png', * filename: 'forYou.png', * }, * }) * @example * // Attach from base64 string * send({ * from: 'admin@openfn.org', * to: 'email@example.com', * subject: 'Your invoice', * text: 'Please find your invoice attached', * attachment: { * filename: 'invoice.pdf', * data: $.data // base64 string * }, * }) * @function * @param {object} params - Params for sending an email */ export function send(params: object): (state: any) => any; export { alterState, beta, combine, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";