import type { Helper } from "../helper-registry.js"; /** * Checks if a collection (array, object, or string) is empty. * * Inline, subexpression, or block helper that returns true (or the block) if the given collection is empty, * or false (or the inverse block, if supplied) if the collection is not empty. * * Useful in CTRF test reporting for conditionally rendering sections when there are no tests, errors, or results. * * @example * {{#isEmpty test.results}}No results!{{else}}Results found.{{/isEmpty}} * * * {{isEmpty test.errors}} * * * @param {unknown} collection - The collection (array, object, or string) to check. * @param {unknown} [options] - Handlebars options object (for block usage). * @returns {boolean|string} True/false for inline/subexpression, or rendered block for block usage. * * Use this to hide empty test sections, display fallback messages, or control report layout based on data presence. */ export declare const isEmptyHelper: Helper; /** * Block helper that iterates over an array or object, exposing each item (and key for objects) to the block. * * If an array is given, .forEach is called; if an object is given, .forOwn is called; otherwise the inverse block is returned. * * Useful in CTRF test reporting for iterating over dynamic test results, error maps, or grouped data. * * @example * {{#iterate test.results}} * Test: {{this.name}} - Status: {{this.status}} * {{else}} * No test results. * {{/iterate}} * * * {{#iterate test.stats}} * {{@key}}: {{this}} * {{/iterate}} * * * @param {unknown} collection - The collection (array or object) to iterate over. * @param {unknown} options - Handlebars options object. * @returns {string} Rendered block for each item, or inverse block if not iterable. * * Use this to render dynamic tables, lists, or grouped summaries in test reports. */ export declare const iterateHelper: Helper; export declare const collectionsHelpers: Helper[];