import type { Helper } from "../helper-registry.js"; /** * Helper that renders the block if both of the given values are truthy. * If an inverse block is specified it will be rendered when falsy. * Works as a block helper, inline helper or subexpression. * * @example * {{#and test.passed (not test.flaky)}}Test is stable and passed{{else}}Unstable or failed{{/and}} * Use to show a message only if a test both passed and is not flaky in a CTRF report. */ export declare const andHelper: Helper; /** * Render a block when a comparison of the first and third arguments returns true. * The second argument is the arithmetic operator to use. You may also optionally specify an inverse block to render when falsy. * * @example * {{#compare test.duration ">" 1000}}Long-running test{{else}}Quick test{{/compare}} * Use to highlight tests that exceed a duration threshold in test reports. */ export declare const compareHelper: Helper; /** * Block helper that renders the block if collection has the given value, using strict equality (===) for comparison, otherwise the inverse block is rendered (if specified). * If a startIndex is specified and is negative, it is used as the offset from the end of the collection. * * @example * {{#contains test.tags "flaky"}}Flaky test{{else}}Stable test{{/contains}} * Use to check if a test's tags include "flaky" or another status in a CTRF report. */ export declare const containsHelper: Helper; /** * Returns the first value that is not undefined, otherwise the default value is returned. * * @example * {{default test.error "No error message"}} * Use to provide fallback text for missing error messages in test reports. */ export declare const defaultHelper: Helper; /** * Block helper that renders a block if a is equal to b. If an inverse block is specified it will be rendered when falsy. * You may optionally use the compare="" hash argument for the second value. * * @example * {{#eq test.status "passed"}}✓ Passed{{else}}✗ Failed{{/eq}} * Use to show a checkmark for passed tests and a cross for failed ones in a CTRF summary. */ export declare const eqHelper: Helper; /** * Block helper that renders a block if a is greater than b. * If an inverse block is specified it will be rendered when falsy. * You may optionally use the compare="" hash argument for the second value. * * @example * {{#gt test.duration 2000}}Test took longer than 2s{{else}}Test was quick{{/gt}} * Use to highlight slow tests in a test duration report. */ export declare const gtHelper: Helper; /** * Block helper that renders a block if a is greater than or equal to b. * If an inverse block is specified it will be rendered when falsy. * You may optionally use the compare="" hash argument for the second value. * * @example * {{#gte test.retries 1}}Test was retried{{else}}No retries{{/gte}} * Use to show a warning if a test was retried at least once in a CTRF report. */ export declare const gteHelper: Helper; /** * Block helper that renders a block if value has pattern. If an inverse block is specified it will be rendered when falsy. * * @example * {{#has test.message "timeout"}}Timeout error detected{{else}}No timeout{{/has}} * Use to check if a test's error message contains a specific keyword in a report. */ export declare const hasHelper: Helper; /** * Returns true if the given value is falsey. Uses JS falsey semantics. * * @example * {{#if (isFalsey test.error)}}No error present{{/if}} * Use to check if a test has no error message in a summary table. */ export declare const isFalseyHelper: Helper; /** * Returns true if the given value is truthy. Uses JS truthy semantics. * * @example * {{#if (isTruthy test.passed)}}Test passed{{/if}} * Use to check if a test passed in a conditional block. */ export declare const isTruthyHelper: Helper; /** * Return true if the given value is an even number. * * @example * {{#ifEven @index}}Even row{{else}}Odd row{{/ifEven}} * Use to alternate row colors in a test report table by index. */ export declare const ifEvenHelper: Helper; /** * Conditionally renders a block if the remainder is zero when a operand is divided by b. If an inverse block is specified it will be rendered when the remainder is not zero. * * @example * {{#ifNth @index 3}}Every third row{{/ifNth}} * Use to highlight every nth test in a report table. */ export declare const ifNthHelper: Helper; /** * Block helper that renders a block if value is an odd number. If an inverse block is specified it will be rendered when falsy. * * @example * {{#ifOdd @index}}Odd row{{else}}Even row{{/ifOdd}} * Use to alternate row colors in a test report table by index. */ export declare const ifOddHelper: Helper; /** * Block helper that renders a block if a is equal to b. If an inverse block is specified it will be rendered when falsy. Similar to eq but does not do strict equality. * * @example * {{#is test.status 1}}Loose match for status{{/is}} * Use for loose equality checks on test status or codes in a report. */ export declare const isHelper: Helper; /** * Block helper that renders a block if a is not equal to b. If an inverse block is specified it will be rendered when falsy. Similar to unlessEq but does not use strict equality for comparisons. * * @example * {{#isnt test.status "failed"}}Not failed{{/isnt}} * Use to show a message for tests that are not failed in a summary. */ export declare const isntHelper: Helper; /** * Block helper that renders a block if a is less than b. * If an inverse block is specified it will be rendered when falsy. * You may optionally use the compare="" hash argument for the second value. * * @example * {{#lt test.duration 500}}Very fast test{{else}}Not very fast{{/lt}} * Use to highlight tests that are especially quick in a report. */ export declare const ltHelper: Helper; /** * Block helper that renders a block if a is less than or equal to b. * If an inverse block is specified it will be rendered when falsy. * You may optionally use the compare="" hash argument for the second value. * * @example * {{#lte test.retries 0}}No retries{{else}}Retried{{/lte}} * Use to show a message for tests that were not retried in a CTRF report. */ export declare const lteHelper: Helper; /** * Block helper that renders a block if neither of the given values are truthy. If an inverse block is specified it will be rendered when falsy. * * @example * {{#neither test.passed test.retryPassed}}Both failed{{/neither}} * Use to check if both a test and its retry failed in a report. */ export declare const neitherHelper: Helper; /** * Returns true if val is falsey. Works as a block or inline helper. * * @example * {{#not test.passed}}Test failed{{/not}} * Use to show a message for failed tests in a summary table. */ export declare const notHelper: Helper; /** * Block helper that renders a block if any of the given values is truthy. If an inverse block is specified it will be rendered when falsy. * * @example * {{#or test.failed test.flaky}}Attention needed{{/or}} * Use to show a warning if a test is either failed or flaky in a CTRF report. */ export declare const orHelper: Helper; /** * Block helper that always renders the inverse block unless a is is equal to b. * * @example * {{#unlessEq test.status "failed"}}Not failed{{/unlessEq}} * Use to show a message for tests that are not failed in a CTRF report. */ export declare const unlessEqHelper: Helper; /** * Block helper that always renders the inverse block unless a is is greater than b. * * @example * {{#unlessGt test.duration 1000}}Not long{{/unlessGt}} * Use to show a message for tests that are not long-running in a report. */ export declare const unlessGtHelper: Helper; /** * Block helper that always renders the inverse block unless a is is less than b. * * @example * {{#unlessLt test.duration 500}}Not very fast{{/unlessLt}} * Use to show a message for tests that are not especially quick in a report. */ export declare const unlessLtHelper: Helper; /** * Block helper that always renders the inverse block unless a is is greater than or equal to b. * * @example * {{#unlessGteq test.retries 1}}No retries{{/unlessGteq}} * Use to show a message for tests that were not retried in a CTRF report. */ export declare const unlessGteqHelper: Helper; /** * Block helper that always renders the inverse block unless a is is less than or equal to b. * * @example * {{#unlessLteq test.retries 0}}Retried at least once{{/unlessLteq}} * Use to show a message for tests that were retried in a CTRF report. */ export declare const unlessLteqHelper: Helper; export declare const comparisonHelpers: Helper[];