import { CommandComponentNode } from './types/CommandComponent'; import { CommandTree, CommandTreeNode, CommandTreeNodes } from './types/CommandTree'; /** * @param lastIndex The index counted from the last, starting from `1`. */ export declare function getArgOrDefault(args: CommandComponentNode[], lastIndex: number, fallback: T): T; /** * @param lastIndex The index counted from the last, starting from `1`. */ export declare function getArgData(args: CommandComponentNode[], lastIndex: number): CommandComponentNode | undefined; /** * Get the `children` of specific `CommandTreeNode`. */ export declare function getChildren(tree: CommandTree, node: CommandTreeNode): CommandTreeNodes | undefined; /** * This is a pure function. * @param currentNode Node which contains `template`. * @param singleTemplate Node whose path is the `template` defined in `currentNode`. */ export declare function fillSingleTemplate(currentNode: CommandTreeNode, singleTemplate: CommandTreeNode): CommandTreeNode; /** * This is a pure function. * @param currentNode Node which contains `template`. * @param childrenTemplate NodeChildren whose path is the `template` defined in `currentNode`. */ export declare function fillChildrenTemplate(currentNode: CommandTreeNode, childrenTemplate: CommandTreeNodes): CommandTreeNodes;