import { z } from 'zod'; import type { HelpTarget } from './help.js'; export declare const CLIOptionsSchema: z.ZodObject<{ targets: z.ZodOptional>; skill: z.ZodOptional; cwd: z.ZodOptional; configPath: z.ZodOptional; json: z.ZodDefault; output: z.ZodOptional; traces: z.ZodDefault; failOn: z.ZodOptional>>; reportOn: z.ZodOptional>>; minConfidence: z.ZodOptional>; help: z.ZodDefault; parallel: z.ZodOptional; model: z.ZodOptional; effort: z.ZodOptional>; runtime: z.ZodOptional>; quiet: z.ZodDefault; verbose: z.ZodDefault; debug: z.ZodDefault; log: z.ZodDefault; color: z.ZodOptional; force: z.ZodDefault; list: z.ZodDefault; git: z.ZodDefault; staged: z.ZodDefault; remote: z.ZodOptional; offline: z.ZodDefault; failFast: z.ZodDefault; regenerate: z.ZodDefault; prompt: z.ZodOptional; }, z.core.$strip>; export type CLIOptions = z.infer; export interface SetupAppOptions { org?: string; port: number; timeout: number; name?: string; open: boolean; } export type RunsSubcommand = 'list' | 'show' | 'gc' | 'follow'; export interface RunsOptions { subcommand: RunsSubcommand; files: string[]; /** Include sessions with zero analyzed files in `list` output. */ all?: boolean; } export interface ParsedArgs { command: 'run' | 'help' | 'init' | 'add' | 'version' | 'setup-app' | 'sync' | 'runs' | 'build' | 'improve'; options: CLIOptions; helpTarget?: HelpTarget; setupAppOptions?: SetupAppOptions; runsOptions?: RunsOptions; } export declare function showVersion(): void; export interface DetectTargetTypeOptions { /** Current working directory for filesystem checks */ cwd?: string; /** Force git ref interpretation for ambiguous targets */ forceGit?: boolean; } /** * Detect if a target looks like a git ref vs a file path. * Returns 'git' for git refs, 'file' for file paths. * * For ambiguous targets (no path separators, no extension), checks * if a file/directory exists at that path before defaulting to git ref. */ export declare function detectTargetType(target: string, options?: DetectTargetTypeOptions): 'git' | 'file'; /** * Classify targets into git refs and file patterns. */ export declare function classifyTargets(targets: string[], options?: DetectTargetTypeOptions): { gitRefs: string[]; filePatterns: string[]; }; /** * Expand @file target references into newline-delimited target lists. */ export declare function expandTargetFileReferences(targets: string[], cwd?: string): string[]; export declare function parseCliArgs(argv?: string[]): ParsedArgs; //# sourceMappingURL=args.d.ts.map