import { type FlagDef, type ParsedFlags } from '@chkit/core'; import { type PluginRuntime } from '../plugins.js'; import type { CommandRegistry, RegisteredCommand } from './command-registry.js'; export declare function parseCommandArgs(commandName: string, argv: string[], flagDefs: readonly FlagDef[]): { flags: ParsedFlags; positionals: string[]; } | null; export declare function runResolvedCommand(input: { argv: string[]; commandName: string; resolved: RegisteredCommand; registry: CommandRegistry; config: Parameters[0]['config']; configPath: string; pluginRuntime: PluginRuntime; onAmbiguousPluginSubcommand?: () => void; }): Promise; //# sourceMappingURL=command-dispatch.d.ts.map