import { ICommandArguments, ICommandOptionDefinition, IHandlerParameters, Session } from "@zowe/imperative"; /** * Utility Methods for the CLI * @export */ export declare class MATSession { static MAT_CONNECTION_OPTION_GROUP: string; /** * Defines the protocol option during MAT CLI profile creation. */ static MAT_REST_PROTOCOL: ICommandOptionDefinition; /** * Defines the hostname option during MAT CLI profile creation. */ static MAT_REST_HOSTNAME: ICommandOptionDefinition; /** * Defines the port option during MAT CLI profile creation. */ static MAT_REST_PORT: ICommandOptionDefinition; /** * Defines the username option during MAT CLI profile creation. */ static MAT_CLI_USERNAME: ICommandOptionDefinition; /** * Option used in profile creation and commands for protocol for MAT */ static MAT_CLI_PASSWORD: ICommandOptionDefinition; /** * Option used in profile creation and commands for basePath setting for connecting to MAT */ static MAT_CLI_BASE_PATH: ICommandOptionDefinition; /** * Option used in profile creation and commands for rejectUnauthorized setting for connecting to MAT */ static MAT_CLI_REJECT_UNAUTHORIZED: ICommandOptionDefinition; static MAT_CLI_LISTINGDIR: ICommandOptionDefinition; /** * Options related to connecting to MAT * These options can be filled in if the user creates a profile */ static PMA_CONNECTION_OPTIONS: ICommandOptionDefinition[]; /** * Given command line arguments, create a REST Client Session. * @static * @param {IProfile} args - The arguments specified by the user * @returns {Session} - A session for usage in the CMCI REST Client */ static createBasicMatSessionFromArguments(args: ICommandArguments): Session; /** * Given command handler parameters, create a REST Client Session. * @static * @param {IHandlerParameters} params - Command parameters sent by imperative. * @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true) * @returns {Session} - A session for usage in the CMCI REST Client */ static createSessCfgForHandler(params: IHandlerParameters, doPrompting?: boolean): Promise; }