/** * Commander action callback helpers for the CommandSpec mount layer. */ /** * Split a Commander action callback's variadic arguments into the parsed-opts * object and the trailing positional args. * * Commander calls `action((...positionalArgs, optsObject, command))`: the * declared positionals come first, then the parsed-options object, then the * `Command` instance. * * The returned `opts` are sourced from the final `Command`'s `optsWithGlobals()` * when available (so a nested ` ` child inherits common flags its * parent primary resolved — see {@link optsWithGlobals}), falling back to the * options object Commander passed positionally (identical for a flat command). * * @throws {Error} When Commander does not provide a final Command argument, or * when argument splitting would select the Command object as parsed options. */ export declare function splitActionArgs(actionArgs: readonly unknown[]): { opts: Record; positionals: readonly unknown[]; }; //# sourceMappingURL=mount-command-action.d.ts.map