import { FiledistConfig, FiledistExtractEntry } from '../types'; export type FiledistCliConfig = FiledistConfig & { defaultPresets?: string[]; }; /** * Parsed CLI flags for all commands. * All flags are undefined when not supplied on the command line; * defaults are applied downstream in the library. */ export type ParsedArgv = { /** Positional package spec: filedist install */ package?: string; output?: string; files?: string[]; exclude?: string[]; contentRegexes?: string[]; all?: boolean; presets?: string[]; configFile?: string; force?: boolean; mutable?: boolean; /** --nosync / --nosync=true|false */ nosync?: boolean; /** --gitignore / --gitignore=true|false */ gitignore?: boolean; /** --managed / --managed=true|false (false ≡ unmanaged mode) */ managed?: boolean; /** --readonly / --readonly=true|false */ readonly?: boolean; dryRun?: boolean; upgrade?: boolean; silent?: boolean; verbose?: boolean; /** --no-save: skip saving config to .filedist.yml */ ignoreConfig?: boolean; /** --local-only: skip package installs/git clones; verify only against .filedist markers */ localOnly?: boolean; /** --frozen-lockfile: use .filedist.lock exclusively; fail if lock file is missing */ frozenLockfile?: boolean; }; export declare function resolveEffectivePresets(parsed: ParsedArgv, config?: FiledistCliConfig | null): string[]; /** * Parse all supported CLI flags from an argv array. * Validates mutually exclusive combinations and throws on invalid input. */ export declare function parseArgv(argv: string[]): ParsedArgv; /** * Build a FiledistExtractEntry from the positional package arg + CLI flags. * Returns null if no positional package arg is present. */ export declare function buildEntriesFromArgv(parsed: ParsedArgv, presets?: string[]): FiledistExtractEntry[] | null; /** * Apply CLI overrides from ParsedArgv to each FiledistExtractEntry. * CLI flags always take precedence over config file values. */ export declare function applyArgvOverrides(entries: FiledistExtractEntry[], parsed: ParsedArgv): FiledistExtractEntry[]; /** * Build and preset-filter extract entries from parsed CLI args and/or config. * When a positional package arg is provided, one entry is built from CLI flags. * Otherwise, entries come from the config sets with CLI overrides applied. * Results are filtered by any requested --presets. * Throws if no packages are configured. */ export declare function resolveEntriesFromConfigAndArgs(config: FiledistConfig | null, argv: string[]): FiledistExtractEntry[]; //# sourceMappingURL=argv.d.ts.map