import type { Maybe } from "@vangware/types"; import type { CronSteps } from "../types/CronSteps.js"; import type { LimitTuple } from "../types/LimitTuple.js"; import type { StringValueParser } from "../types/StringValueParser.js"; /** * Parses a string into a `CronSteps`. * * @category Parsers * @example * ```typescript * const parseSecondsSteps = parseStringSteps([0, 59])(parseStringSecondsValue); * * parseSecondsSteps("13/10"); // { every: 10, start: 13 } * parseSecondsSteps("13-10/10"); // { every: 10, start: { from: 13, to: 10 } } * parseSecondsSteps("?/10"); // { every: 10, start: "?" } * parseSecondsSteps("13"); // undefined * ``` * @param limit `LimitTuple` for `CronSteps`. * @returns Curried function with `limit` in context. */ export declare const parseStringSteps: ([minimum, maximum]: LimitTuple) => < Value, >( parser: StringValueParser, ) => (source: string) => Maybe>;