import type { CronList } from "../types/CronList.js"; import type { LimitTuple } from "../types/LimitTuple.js"; import type { StringValueParser } from "../types/StringValueParser.js"; /** * Parses a string into a `CronList`. * * @category Parsers * @example * ```typescript * parseStringListSeconds("13,10"); // [13, 10] * parseStringListSeconds("13-10,10"); // [{ from: 13, to: 10 }, 10] * parseStringListSeconds("13/10,10"); // [{ every: 10, start: 13 }, 10] * parseStringListSeconds("13-10/10,10"); // [{ every: 10, start: { from: 13, to: 10 } }, 10] * parseStringListSeconds("?/10,10"); // [{ every: 10, start: "?" }, 10] * parseStringListSeconds("13,INVALID"); // undefined * parseStringListSeconds("INVALID"); // undefined * ``` * @param limit `LimitTuple` to be used when parsing `CronSteps`. * @returns Curried function with `limit` in context. */ export declare const parseStringList: ( limit: LimitTuple, ) => ( parser: StringValueParser, ) => (source: string) => CronList | undefined;