/** * @author jasonHzq * @description Spec 作用域命令:调用 API 接口 */ import type { CliContext } from "../../context.d.ts"; export interface CallCommandOptions { env?: string; header?: string[]; output?: string; debug?: boolean; dryRun?: boolean; useRemote?: boolean; query?: string; } export declare const CLI_OPTIONS: Set; /** * 从命令行参数中解析 API 请求参数 */ export declare function parseToolParams(args: string[]): Record; export declare function tryParseJson(value: string): unknown; /** * Call command: execute an API call */ export declare function callCommand(ctx: CliContext, specName: string, tagName: string, apiName: string, rawArgs: string[], options?: CallCommandOptions): Promise;