import type { Helper } from "../helper-registry.js"; /** * Returns either the `singular` or `plural` inflection of a word based on * the given `count`. Optionally includes the count in the result. * Useful for displaying test counts, result summaries, and dynamic messaging in test reports. * * @example * {{inflect tests.passed.length "test" "tests"}} * * * * {{inflect tests.failed.length "failure" "failures" true}} * * * * * {{inflect suite.testCount "case" "cases" true}} found in {{suite.name}} * * * Use in CTRF templates for dynamic test result messaging: * - Test count summaries: "{{inflect total "test" "tests" true}} executed" * - Error reporting: "{{inflect errors.length "error" "errors"}} detected" * - Suite descriptions: "{{inflect suite.tests.length "test case" "test cases"}}" * * @param {unknown} count - The count to determine singular/plural form. * @param {unknown} singular - The singular form of the word. * @param {unknown} plural - The plural form of the word. * @param {unknown} includeCount - Optional. If true, includes the count in the result. * @returns {string} The appropriate singular/plural form for use in test reports. */ export declare const inflectHelper: Helper; /** * Returns an ordinalized number as a string (1st, 2nd, 3rd, etc.). * Useful for ranking test results, iteration counts, and positional information in test reports. * * @example * {{ordinalize test.attempt}} * * * * * {{ordinalize suite.position}} test suite in the execution order * * * This is the {{ordinalize test.retry}} retry of {{test.name}} * * * Use in CTRF templates for: * - Test execution order: "{{ordinalize index}} test executed" * - Retry information: "{{ordinalize retryCount}} attempt" * - Suite positioning: "{{ordinalize position}} suite in batch" * - Ranking results: "{{ordinalize rank}} fastest test" * * @param {unknown} val - The number to ordinalize (can be string or number). * @returns {string} The ordinalized number for use in test reports. */ export declare const ordinalizeHelper: Helper; export declare const inflectionHelpers: Helper[];