import { Target } from '@sasjs/utils/types';
import { TargetScope } from '../../types/targetScope';
/**
 * Creates a .env file for the specified target.
 * The file will contain the client ID, secret, access token and refresh token if the server type of target is viya.
 * The file will contain the username and password if the server type of target is sas9
 * Its name will be of the form `.env.{targetName}`
 * @param {string} target- the target to create the env file for.
 * @param {boolean} insecure- boolean to use insecure connection, default is false. lf true the server will not reject any connection which is not authorized with the list of supplied CAs
 */
export declare const addCredential: (target: Target, insecure: boolean, targetScope: TargetScope) => Promise<Target>;
export declare const validateTargetName: (targetName: string) => string;
export declare const getTokens: (target: Target, client: string, secret: string) => Promise<{
    access_token: string;
    refresh_token: string;
}>;
export declare const createEnvFileForViya: (targetName: string, client: string, secret: string, accessToken: string, refreshToken: string) => Promise<void>;
export declare const createEnvFileForSas9: (targetName: string, userName: string, password: string) => Promise<void>;
export declare const createEnvFileForSasjs: (targetName: string, client: string, accessToken: string, refreshToken: string) => Promise<void>;
