/** * @file Types + `COMMON_FLAGS` table for argv flag parsing. Split out of * `exe/argv/flags.ts` for size hygiene. Pure values + types only; no I/O or * runtime side effects so this module stays cheap to import everywhere. */ /** * Flag values object from parsed arguments. */ export interface FlagValues { [key: string]: unknown; quiet?: boolean | undefined; silent?: boolean | undefined; verbose?: boolean | undefined; help?: boolean | undefined; all?: boolean | undefined; fix?: boolean | undefined; force?: boolean | undefined; 'dry-run'?: boolean | undefined; json?: boolean | undefined; debug?: boolean | undefined; watch?: boolean | undefined; coverage?: boolean | undefined; cover?: boolean | undefined; update?: boolean | undefined; staged?: boolean | undefined; changed?: boolean | undefined; } /** * Accepted input types for flag checking functions. Can be parsed flag values, * process.argv array, or undefined (uses process.argv). */ export type FlagInput = FlagValues | string[] | readonly string[] | undefined; /** * Common flag definitions for parseArgs configuration. Can be spread into * parseArgs options for consistency. */ export declare const COMMON_FLAGS: { all: { type: 'boolean'; default: boolean; description: string; }; changed: { type: 'boolean'; default: boolean; description: string; }; cover: { type: 'boolean'; default: boolean; description: string; }; coverage: { type: 'boolean'; default: boolean; description: string; }; debug: { type: 'boolean'; default: boolean; description: string; }; describe: { type: 'boolean'; default: boolean; description: string; }; 'dry-run': { type: 'boolean'; default: boolean; description: string; }; fix: { type: 'boolean'; default: boolean; description: string; }; force: { type: 'boolean'; default: boolean; description: string; }; help: { type: 'boolean'; default: boolean; short: string; description: string; }; json: { type: 'boolean'; default: boolean; description: string; }; quiet: { type: 'boolean'; default: boolean; short: string; description: string; }; silent: { type: 'boolean'; default: boolean; description: string; }; staged: { type: 'boolean'; default: boolean; description: string; }; update: { type: 'boolean'; default: boolean; short: string; description: string; }; verbose: { type: 'boolean'; default: boolean; short: string; description: string; }; watch: { type: 'boolean'; default: boolean; short: string; description: string; }; };