import type { CronSteps } from "../types/CronSteps.js"; import type { CronValueParser } from "../types/CronValueParser.js"; import type { LimitTuple } from "../types/LimitTuple.js"; /** * Parses `CronSteps` into a string. * * @category Parsers * @example * ```typescript * const parseCronStepsSeconds = parseCronSteps([0, 59])(parseCronSecondsValue); * * parseCronStepsSeconds({ every: 10, start: 13 }); // "13/10" * parseCronStepsSeconds({ every: 99, start: 13 }); // undefined * parseCronStepsSeconds({ * every: 10, * start: { from: 13, to: 10 }, * }); // "13-10/10" * parseCronStepsSeconds({ every: 10, start: "?" }); // "?/10" * ``` * @param limit `LimitTuple` to be used when parsing `CronSteps`. * @returns Curried function with `limit` on context. */ export declare const parseCronSteps: ([minimum, maximum]: LimitTuple) => < Value, >( parser: CronValueParser, ) => (source: CronSteps) => string | undefined;