/** * Provides cron-related utility functions based on the * [cron](https://en.wikipedia.org/wiki/Cron) format for use * in HotMesh mapping rules. * * @remarks * Invoked in mapping rules using `{@cron.}` syntax. */ declare class CronHandler { /** * Calculates the delay in seconds until the next execution * of a cron job. Throws on invalid expressions rather than * degrading silently. * * @param {string} cronExpression - The cron expression to parse (e.g. `'0 0 * * *'`) * @returns {number} The delay in seconds until the next cron job execution (minimum `HMSH_FIDELITY_SECONDS`) * @throws {Error} If the cron expression is invalid * @example * ```yaml * cron_next_result: * "@pipe": * - ["{a.expressions.cron}"] * - ["{@cron.nextDelay}"] * ``` */ nextDelay(cronExpression: string): number; } export { CronHandler };