import type { CommandBuilder, RunState } from '../core/index.js'; import { Option, type OptionFlags, type OptionReturn } from './base.js'; export type CounterOptionFlags = OptionFlags; export declare function Counter(descriptor: string[], opts: CounterOptionFlags & { required: true; }): OptionReturn; export declare function Counter(descriptor: string[], opts?: CounterOptionFlags): OptionReturn; export declare function Counter(descriptor: string[], initialValue: number, opts?: Omit): OptionReturn; export declare class CounterOption extends Option { description: string | undefined; required: boolean; hidden: boolean; descriptor: string[]; initialValue: number | undefined; constructor(descriptor: string[], initialValue: number | undefined, options: CounterOptionFlags); define(builder: CommandBuilder, _key: string): void; transform(_builder: CommandBuilder, _key: string, state: RunState): number | undefined; }