import { type Factory, type GetterOrValue } from '../getter/getter'; export type NumberFactory = Factory; /** * incrementingNumberFactory() configuration. */ export interface IncrementingNumberFactoryConfig { /** * Value to start at. Defaults to 0. */ readonly startAt?: number; /** * Getter to increase by. Defaults to 1. */ readonly increaseBy?: GetterOrValue; } /** * Creates a factory that returns sequentially increasing numbers, starting from a configurable value and incrementing by a configurable step. * * @param config - Configuration with optional `startAt` (default 0) and `increaseBy` (default 1) * @returns A factory function that returns the next number in the sequence on each call. * * @dbxUtil * @dbxUtilCategory number * @dbxUtilKind factory * @dbxUtilTags number, factory, increment, sequence, counter * @dbxUtilRelated random-number-factory * * @example * ```ts * const factory = incrementingNumberFactory({ startAt: 10, increaseBy: 5 }); * factory(); // 10 * factory(); // 15 * factory(); // 20 * ``` * * @__NO_SIDE_EFFECTS__ */ export declare function incrementingNumberFactory(config?: IncrementingNumberFactoryConfig): NumberFactory;