import type { PontxManager } from "../manager.d.ts"; import type { CliContext } from "../cli-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; /** * Parse command line arguments to extract API parameters * Supports: * --paramName value * --paramName=value * --body '{"key":"value"}' * --body={"key":"value"} * --body @./file.json * --body=@./file.json * @./file.json (shorthand for body) * * Note: Values starting with dash are treated as values (not flags) when they * are negative numbers (e.g., -123) or follow a known parameter. * * @param args - Array of command line arguments * @returns Record of parameter name to value */ export declare function parseToolParams(args: string[]): Record; /** * Try to parse a string as JSON, return original string if failed */ export declare function tryParseJson(value: string): unknown; /** * Call command: execute an API call */ export declare function callCommand(managerOrContext: PontxManager | CliContext, apiPath: string, rawArgs: string[], options?: CallCommandOptions): Promise;