import { CatchAllHandler, Command, CommandTree, CommandTreeResolution, Disambiguator } from '../models/command'; import { ExecOptions } from '../models/execOptions'; interface CommandModel { catchalls: CatchAllHandler[]; read(argv: string[], execOptions: ExecOptions): Promise; forEachNode(fn: (command: Command) => void): void; } export declare class CommandModelImpl implements CommandModel { private readonly _root; readonly root: CommandTree; private readonly _disambiguator; readonly disambiguator: Disambiguator; private readonly _catchalls; readonly catchalls: CatchAllHandler[]; read(argv: string[], execOptions: ExecOptions): Promise; forEachNode(fn: (command: Command) => void): void; private newTree; } export declare function getModelInternal(): CommandModelImpl; export declare function getModel(): CommandModel; export declare function init(): void; export declare function initIfNeeded(): void; export {};