import { CommandHandler, CommandOverrideHandler, CommandRegistrar, CommandTree, CommandTreeResolution, CatchAllOffer, Command, CommandOptions, KResponse, ParsedOptions } from '../models/command'; import { ExecOptions } from '../models/execOptions'; import { PluginResolver } from '../plugins/resolver'; export declare const setPluginResolver: (_: PluginResolver) => void; /** * Look up a command handler for the given `argv`. This is the main * Read part of a REPL. * */ export declare const read: , O extends ParsedOptions>(root: CommandTree, argv: string[], noRetry: boolean, execOptions: ExecOptions, tryCatchalls?: boolean) => Promise>; /** * The model we present to plugins, a `CommandRegistrar` * */ export declare class ImplForPlugins implements CommandRegistrar { protected readonly plugin: string; constructor(plugin: string); catchall(offer: CatchAllOffer, handler: CommandHandler, prio?: number, options?: CommandOptions): number; listen(route: string, handler: CommandHandler, options?: CommandOptions): Command; synonym(route: string, handler: CommandHandler, master: Command, options: CommandOptions): void; subtree(route: string, options: CommandOptions): Command; subtreeSynonym(route: string, master: Command, options?: CommandOptions): void; override(route: string, fromPlugin: string, overrideHandler: CommandOverrideHandler, options?: CommandOptions): Promise>; find(route: string, fromPlugin?: string, noOverride?: boolean): Promise>; } /** * Create a `CommandRegistrar` facade, for use by plugins in * registering commands. * * This method is named "proxy" because it mostly delegates to the * underlying implementation, with extra help in: * * - remembering from which plugin calls to listen emanate. * - consolidating the tree model across separately-installed @kui-shell/core * */ export declare function proxy(plugin: string): CommandRegistrar;