/*! * Copyright (c) 2026 Broadcom. All Rights Reserved. The term * "Broadcom" refers to Broadcom Inc. and/or its subsidiaries. * * This software and all information contained therein is * confidential and proprietary and shall not be duplicated, * used, disclosed, or disseminated in any way except as * authorized by the applicable license agreement, without the * express written permission of Broadcom. All authorized * reproductions must be marked with this language. * * EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO * THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS * SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT * LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR * FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM * BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR * DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE, * INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS * INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS * EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE. */ import { ICommandArguments, ImperativeError, IProfile, TextUtils } from "@zowe/imperative"; import { IChanges, IEnvironment, IRestartParameters, ISet } from "../api/doc/DSRestUtils/IDSRequestPayload"; import { IEnvironmentList } from "../api/doc/profile/IEnvironmentList"; import { IInputFileOptional } from "../api/doc/IHandlerFile"; import { IResponseMap } from "../api/doc/DSRestUtils/IDSRestClient"; import { IDSResponse } from "../api/doc/DSRestUtils/IDSResponse"; import { IRunSQLResult } from "../api/doc/DSRestUtils/IRunSQLResult"; import { IVscodeResponse } from "../api/doc/IVscodeJSONResponse"; export declare function err(msg: string): never; export declare function assertError(object: unknown): asserts object is Error; export declare function assertImperativeError(object: unknown): asserts object is ImperativeError; export declare function routeRestartParameters(args: ICommandArguments): IRestartParameters | undefined; export declare function checkFileExists(fileName: string, argument: string): void; export declare function checkFileEmpty(fileName: string, argument: string, objectFileContent?: string): void; export declare function writeFile(outputFileName: string, outputFileParameterName: string, inputContent?: string | null): Promise; export declare function parseEnvironmentList(argument: string, defaultEnvList?: IEnvironmentList, profileEnvList?: IEnvironmentList): IEnvironmentList | undefined; export declare function convEnvListForAPI(environmentList: IEnvironmentList): IEnvironment[] | undefined; export declare function getChangeList(file: IInputFileOptional): IChanges[] | undefined; export declare function getChangeList(content: string[] | undefined): IChanges[] | undefined; export declare function getSet(args: IProfile, parm: string): ISet | undefined; export declare const render: typeof TextUtils.formatMessage; export declare function getErrorMsg(promise: Promise): Promise; export declare function isVersionLower(version: string, model: string): boolean; export declare function removeUndefinedProperties(obj: Record): Record; export declare function isOption(arg: string): boolean; export declare function formatTimestamp(timestamp: number): string; export declare function generateUniqueColumnNames(rawColumns: string[]): string[]; export declare function mapResponseRowsToColumns(response: IDSResponse): IResponseMap; export declare function formatSqlResultAsCsv(result?: IRunSQLResult): string; export declare function isTokenAuth(profileContent?: IProfile): boolean; export declare function allowsTokenAuth(profileContent?: IProfile): boolean; export declare function allowsBasicAuth(profileContent?: IProfile): boolean; export declare function isVscodeResponse(response: unknown): response is IVscodeResponse; export declare function assertVscodeResponse(response: unknown): asserts response is IVscodeResponse;