import { StrictValidator } from "typanion"; import { GeneralOptionFlags, CommandOptionReturn, WithArity } from "./utils"; export type ArrayFlags = GeneralOptionFlags & { arity?: Arity; validator?: StrictValidator>; }; /** * Used to annotate array options. Such options will be strings unless they * are provided a schema, which will then be used for coercion. * * @example * --foo hello --foo bar * ► {"foo": ["hello", "world"]} */ export declare function Array(descriptor: string, opts: ArrayFlags & { required: true; }): CommandOptionReturn>>; export declare function Array(descriptor: string, opts?: ArrayFlags): CommandOptionReturn> | undefined>; export declare function Array(descriptor: string, initialValue: Array>, opts?: Omit, 'required'>): CommandOptionReturn>>;