/** * Gets the first options in an array of strings that passes all of it's conditions. * * Options is expected to be in the format: * [ * { * text: 'Option A', * show_when: [ ... ] * }, * { * text: 'Option B', * show_when: [ ... ] * } * ... * ] * * @param {Array} options An array of options matching the above format. * @param {Object} formData A formData object to use when evaluating the conditions. * @param {String} key The key to use to find the text to use in each option, defaults to 'text'. * @returns The first string that passes its' conditions, or null if something went wrong. */ declare const getConditionalText: (options: any, formData: any, key?: string) => string | null; export default getConditionalText;