import type { AppConfig } from '../models/config.js'; import type { ArchiveOptions } from '../models/fileOperation.js'; export declare const optionDefinitions: ({ name: string; alias: string; type: StringConstructor; description: string; } | { name: string; type: BooleanConstructor; description: string; alias?: never; } | { name: string; alias: string; type: BooleanConstructor; description: string; })[]; /** * Prints usage information to stdout. */ export declare function displayHelp(): void; /** * Prints the current package version to stdout. */ export declare function displayVersion(): void; /** * Parses process.argv and merges with config defaults to produce * fully resolved ArchiveOptions. * * Returns `null` when --help is requested (caller should display help and exit). * Returns `'version'` when --version is requested (caller should display version and exit). * * @throws If required arguments are missing or values are invalid. */ export declare function parseArgs(config: AppConfig, argv?: string[]): ArchiveOptions | 'version' | null;