import type { CommandBuilder, RunState } from '../core/index.js'; import { Option, type OptionFlags, type OptionReturn } from './base.js'; export type BooleanOptionFlags = OptionFlags; /** * Used to annotate boolean options. * * @example * --foo --no-bar * ► {"foo": true, "bar": false} */ export declare function Boolean(descriptor: string[], opts: BooleanOptionFlags & { required: true; }): OptionReturn; export declare function Boolean(descriptor: string[], opts?: BooleanOptionFlags): OptionReturn; export declare function Boolean(descriptor: string[], initialValue: boolean, opts?: Omit): OptionReturn; export declare class BooleanOption extends Option { description: string | undefined; required: boolean; hidden: boolean; descriptor: string[]; initialValue: boolean | undefined; constructor(descriptor: string[], initialValue: boolean | undefined, options: BooleanOptionFlags); define(builder: CommandBuilder, _key: string): void; transform(_builder: CommandBuilder, _key: string, state: RunState): boolean | undefined; }