import { type AnyCommandDef, type CLIResult, type CommandDef } from "./command-registry.js"; export interface ParsedArgs { params: Record; flags: { json: boolean; lean: boolean; dryRun: boolean; help: boolean; token?: string; }; } export type ParseResult = { ok: true; parsed: ParsedArgs; } | { ok: false; error: CLIResult; }; export declare function parseArgs(def: CommandDef | AnyCommandDef, rawArgs: string[]): ParseResult; export declare function generateUsage(def: CommandDef | AnyCommandDef): string; //# sourceMappingURL=arg-parser.d.ts.map