/** * Param Provider * * Provides completion suggestions for API parameters. * Adapted for hierarchical subcommand format where tag and api * are independent positional arguments. */ import { CompletionContext, CompletionOptions, CompletionProvider, CompletionSuggestion, ParamInfo } from "../types.d.ts"; export interface ParamDataSource { /** Get parameters for an API */ getParams(specName: string, tagName: string, apiName: string): Promise; } export declare class ParamProvider implements CompletionProvider { private options; private dataSource; constructor(options: CompletionOptions, dataSource: ParamDataSource); canHandle(context: CompletionContext): boolean; provide(context: CompletionContext): Promise; /** * Format parameter description with full info */ private formatParamDescription; /** * Extract API path from context using hierarchical positional args * * In hierarchical format: * pontx [specName] call [tag] [api] [options] * tag and api are at fixed positions relative to command. */ private extractApiPath; /** * Get common CLI options as suggestions */ private getCommonOptions; }