import type { CommandBuilder, RunState } from '../core/index.js'; export type OptionFlags = { description?: string; required?: boolean; hidden?: boolean; }; export declare abstract class Option { abstract define(builder: CommandBuilder, key: string): void; abstract transform(builder: CommandBuilder, key: string, state: RunState): T; } export type OptionReturn = T; export type TupleOf = Accumulator['length'] extends Arity ? Accumulator : TupleOf; export type Tuple = Arity extends Arity ? number extends Arity ? Type[] : TupleOf : never; export type WithArity = number extends Type['length'] ? Arity extends 0 ? boolean : Arity extends 1 ? Type : number extends Arity ? boolean | Type | Tuple : Tuple : Type; export declare function rerouteArguments(a: A | B, b: B): [Exclude, B]; export declare function rerouteArguments(a: A | B | undefined, b: B): [Exclude | undefined, B];