import * as z from 'zod/v4'; import type { Command } from '@commander-js/extra-typings'; /** * Parses an argument using a zod validator. If it fails, * it throws a well-formatted commander error using the Zod messages * @param validator Zod schema to validate with * @param cmd Optional commander Command to use when throwing an error. Defaults to `program` * @returns The zod type specified */ export declare function validateArg(validator: T, cmd?: Command): (s: string) => T["_output"]; /** * Parses an argument using a zod validator. If it fails, * it throws a well-formatted commander error using the Zod messages * @param s Arg/option passed into CLI * @param validator Zod schema to validate with * @param cmd Optional commander Command to use when throwing an error. Defaults to `program` * @returns The zod type specified */ export declare function parseArg(s: string, validator: T, cmd?: Command): T['_output']; //# sourceMappingURL=args.d.ts.map