/// <reference types="node" />
import EventEmitter from "events";
import { AuthOrg, BulkStatus, DeployStatus, ExportTreeDataResult, MetadataDetail, MetadataType, Process, ProgressStatus, RetrieveResult, RetrieveStatus, SFDXProjectResult, SObject, ImportTreeDataResponse } from "@aurahelper/core";
/**
 * Class to connect with Salesforce to list or describe metadata types, list or describe all SObjects, make queries, create SFDX Project, validate,
 * deploy or retrieve in SFDX and Metadata API Formats, export and import data and much more.
 * Is used to Aura Helper and Aura Helper CLI to support salesfore conections.
 *
 * The setters methods are defined like a builder pattern to make it more usefull
 *
 * All connection methods return a Promise with the associated data to the processes.
 */
export declare class SFConnector {
    usernameOrAlias?: string;
    apiVersion?: string | number;
    projectFolder?: string;
    namespacePrefix?: string;
    multiThread: boolean;
    packageFolder?: string;
    packageFile?: string;
    _processes: {
        [key: string]: Process;
    };
    _inProgress: boolean;
    _percentage: number;
    _increment: number;
    _abort: boolean;
    _allowConcurrence: boolean;
    _event: EventEmitter;
    _useAuraHelperSFDX: boolean;
    /**
     * Constructor to create a new connection object
     * @param {string} [usernameOrAlias] Org Username or Alias to connect. (Must be authorized in the system)
     * @param {string | number} [apiVersion] API Version number to connect with salesforce
     * @param {string} [projectFolder] Path to the project root folder
     * @param {string} [namespacePrefix] Namespace prefix from the Org to connect
     */
    constructor(usernameOrAlias?: string, apiVersion?: string | number, projectFolder?: string, namespacePrefix?: string);
    useAuraHelperSFDX(useAuraHelperSFDX: boolean): void;
    /**
     * Method to set the Username or Alias to connect with org
     * @param {string} usernameOrAlias Org Username or Alias to connect. (Must be authorized in the system)
     *
     * @returns {SFConnector} Returns the connection object
     */
    setUsernameOrAlias(usernameOrAlias: string): SFConnector;
    /**
     * Method to set the API Version to connect
     * @param {string | number} apiVersion API Version number to connect with salesforce
     *
     * @returns {SFConnector} Returns the connection object
     */
    setApiVersion(apiVersion: string | number): SFConnector;
    /**
     * Method to set the project root folder path. When set the project root, automatically set the packageFolder and packageFile to their respective paths
     * @param {string} projectFolder Path to the project root folder
     *
     * @returns {SFConnector} Returns the connection object
     */
    setProjectFolder(projectFolder: string): SFConnector;
    /**
     * Method to set the package folder path. When set the package folder, automatically set packageFile to the respective path
     * @param {string} packageFile Path to the package folder
     *
     * @returns {SFConnector} Returns the connection object
     */
    setPackageFolder(packageFolder: string): SFConnector;
    /**
     * Method to set the package xml file path
     * @param {string} packageFile Path to the package file
     *
     * @returns {SFConnector} Returns the connection object
     */
    setPackageFile(packageFile: string): SFConnector;
    /**
     * Method to set the Org namespace prefix
     * @param {string} namespacePrefix Namespace prefix from the Org to connect
     *
     * @returns {SFConnector} Returns the connection object
     */
    setNamespacePrefix(namespacePrefix: string): SFConnector;
    /**
     * Method to able to the connection object to use several threads and processor cores to run some processes and run faster
     *
     * @returns {SFConnector} Returns the connection object
     */
    setMultiThread(): SFConnector;
    /**
     * Method to set the connection object to use only one thread and processo core to all processes
     *
     * @returns {SFConnector} Returns the connection object
     */
    setSingleThread(): SFConnector;
    /**
     * Method to handle the event when preparing execution of some processes
     * @param {Function} callback Callback function to call when connection is on prepare
     *
     * @returns {SFConnector} Returns the connection object
     */
    onPrepare(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before the create a project on some processes
     * @param {Function} callback Callback function to handle progress when connection will create a project
     *
     * @returns {SFConnector} Returns the connection object
     */
    onCreateProject(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start retrieve data on some processes
     * @param {Function} callback Callback function to handle progress when connection retrieve data
     *
     * @returns {SFConnector} Returns the connection object
     */
    onRetrieve(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start processing results on some processes
     * @param {Function} callback Callback function to handle progress when connection is processing results
     *
     * @returns {SFConnector} Returns the connection object
     */
    onProcess(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start loading local metadata types on some processes
     * @param {Function} callback Callback function to handle progress when connection load metadata types from local project
     *
     * @returns {SFConnector} Returns the connection object
     */
    onLoadingLocal(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start loading metadata types from org on some processes
     * @param {Function} callback Callback function to handle progress when connection load metadata types from connected org
     *
     * @returns {SFConnector} Returns the connection object
     */
    onLoadingOrg(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start copying files on some processes
     * @param {Function} callback Callback function to handle progress when connection start to copying files
     *
     * @returns {SFConnector} Returns the connection object
     */
    onCopyData(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start copying file content on some processes
     * @param {Function} callback Callback function to handle progress when connection star to copy a single file
     *
     * @returns {SFConnector} Returns the connection object
     */
    onCopyFile(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before start compress XML File on some processes
     * @param {Function} callback Callback function to handle progress when start compress
     *
     * @returns {SFConnector} Returns the connection object
     */
    onCompressFile(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before download a Metadata Type from Org on some processes
     * @param {Function} callback Callback function to handle progress when start download metadata type
     *
     * @returns {SFConnector} Returns the connection object
     */
    onBeforeDownloadType(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event after download a Metadata Type from Org on some processes
     * @param {Function} callback Callback function to handle progress when metadata type is downloaded
     *
     * @returns {SFConnector} Returns the connection object
     */
    onAfterDownloadType(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event before download a SObject when describe SObejcts
     * @param {Function} callback Callback function to handle progress when start download sobject
     *
     * @returns {SFConnector} Returns the connection object
     */
    onBeforeDownloadSObject(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event after download a SObject when describe SObejcts
     * @param {Function} callback Callback function to handle progress when sobject is downloaded
     *
     * @returns {SFConnector} Returns the connection object
     */
    onAfterDownloadSObject(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event when error ocurred when download metadata
     * @param {Function} callback Callback function to handle error
     *
     * @returns {SFConnector} Returns the connection object
     */
    onErrorDownload(callback: (status: ProgressStatus) => void): this;
    /**
     * Method to handle the event when connection is aborted
     * @param {Function} callback Callback function to call when connection is aborted
     *
     * @returns {SFConnector} Returns the connection object
     */
    onAbort(callback: () => void): this;
    /**
     * Method to abort all connection running processes. When finishes call onAbort() callback
     */
    abortConnection(): void;
    /**
     * Method to get the username from an authorized org using a username or alias, or using connection username or alias, or using project auth org username or alias
     * @param {string} [usernameOrAlias] Username or alias to get auth username
     *
     * @returns {Promise<string | undefined>} Return a String promise with the Username or Alias data
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     */
    getAuthUsername(usernameOrAlias?: string): Promise<string | undefined>;
    /**
     * Method to get the server instance using a username or alias, or using connection username or alias, or using project auth org username or alias
     * @param {string} [usernameOrAlias] Username or alias to get the server instance
     *
     * @returns {Promise<string | undefined>} Return a String promise with the instance URL
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     */
    getServerInstance(usernameOrAlias?: string): Promise<string | undefined>;
    /**
     * Method to get the auth org data using a username or alias, or using connection username or alias, or using project auth org username or alias
     * @param {string} [usernameOrAlias] Username or alias to get the auth org data
     *
     * @returns {Promise<AuthOrg | undefined>} Return a promise with Auth Org data or undefined if not exists
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     */
    getAuthOrg(usernameOrAlias?: string): Promise<AuthOrg | undefined>;
    /**
     * Method to list all auth org on the system
     *
     * @returns {Promise<AuthOrg[]>} Return a promise with all authorized org in the system
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     */
    listAuthOrgs(): Promise<AuthOrg[]>;
    /**
     * Method to execute a query to the connected org. Can return a Typed data (or use any to return any json)
     * @param {string} query Query to execute (Required)
     * @param {boolean} [useToolingApi] true to use Tooling API to execute the query
     *
     * @returns {Promise<any[]>} Return a promise with the record list
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     */
    query<T>(query: string, useToolingApi?: boolean): Promise<T[]>;
    /**
     * Method to list all Metadata Types available in the connected org (according selected API Version)
     *
     * @returns {Promise<MetadataDetail[]>} Return a promise with the MetadataDetail objects from all available Metadata Types
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    listMetadataTypes(): Promise<MetadataDetail[]>;
    /**
     * Method to describe all or selected Metadata Types from the connected org
     * @param {string[] | MetadataDetail[]} [typesOrDetails] List of Metadata Type API Names or Metadata Details to describe (undefined to describe all metadata types)
     * @param {boolean} [downloadAll] true to download all Metadata Types from the connected org, false to download only the org namespace Metadata Types
     * @param {boolean} [groupGlobalActions] True to group global quick actions on "GlobalActions" group, false to include as object and item.
     *
     * @returns {Promise<{ [key: string]: MetadataType }>} Return a promise with Metadata JSON Object with the selected Metadata Types to describe
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     */
    describeMetadataTypes(typesOrDetails?: string[] | MetadataDetail[], downloadAll?: boolean, groupGlobalActions?: boolean): Promise<{
        [key: string]: MetadataType;
    }>;
    /**
     * Method to list all SObjects API Name by category
     * @param {string} [category] Object Category. Values are: Standard, Custom, All. (All by default)
     *
     * @returns {Promise<string[]>} Return a promise with a list with the sObject names
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    listSObjects(category?: string): Promise<string[]>;
    /**
     * Method to describe SObject data to the specified objects
     * @param {string | string[]} sObjects List with the object API Names to describe
     *
     * @returns {Promise<{ [key: string]: SObject }>} Return a promise with a SObjects data
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     */
    describeSObjects(sObjects: string | string[]): Promise<{
        [key: string]: SObject;
    }>;
    /**
     * Method to retrieve data using the connection package file. You can choose to retrieve as Metadata API format or Source Format
     * @param {boolean} useMetadataAPI True to use Metadata API format, false to use source format
     * @param {string} [targetDir] Path to the target dir when retrieve with Metadata API Format
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<RetrieveResult>} Return a promise with the RetrieveResult object with the retrieve result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder or target dir is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder or target dir not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder or target dir is not a directory
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    retrieve(useMetadataAPI: boolean, targetDir?: string, waitMinutes?: string | number): Promise<RetrieveResult>;
    /**
     * Retrieve report when use Metadata API to retrieve data
     * @param {string} retrieveId Retrieve Id to get the report (Required)
     * @param {string} targetDir Path to the target dir (Required)
     *
     * @returns {Promise<RetrieveStatus>} Return a promise with the RetrieveStatus object with the retrieve status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the target dir is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the target dir not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the target dir is not a directory
     */
    retrieveReport(retrieveId: string, targetDir: string): Promise<RetrieveStatus>;
    /**
     * Method to validate a deploy against the org using the connection package file
     * @param {string} [testLevel] Level of deployment tests to run. Values are 'NoTestRun', 'RunSpecifiedTests', 'RunLocalTests', 'RunAllTestsInOrg'
     * @param {string | string[]} [runTests] String with comma separated test names to execute or list with the test names to execute
     * @param {boolean} [useMetadataAPI] True to validate deploy using Metadata API Format, false to use Source Format
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder or package folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder or package folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder or package folder is not a directory
     * @throws {WrongFilePathException} If the package file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the package file not exists or not have access to it
     * @throws {InvalidFilePathException} If the package file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    validateDeploy(testLevel?: string, runTests?: string | string[], useMetadataAPI?: boolean, waitMinutes?: string | number): Promise<DeployStatus>;
    /**
     * Method to deploy data to the org using the connection package file
     * @param {string} [testLevel] Level of deployment tests to run. Values are 'NoTestRun', 'RunSpecifiedTests', 'RunLocalTests', 'RunAllTestsInOrg'
     * @param {string | string[]} [runTests] String with comma separated test names to execute or list with the test names to execute
     * @param {boolean} [useMetadataAPI] True to Deploy data using Metadata API Format, false to use Source Format
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder or package folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder or package folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder or package folder is not a directory
     * @throws {WrongFilePathException} If the package file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the package file not exists or not have access to it
     * @throws {InvalidFilePathException} If the package file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    deployPackage(testLevel?: string, runTests?: string | string[], useMetadataAPI?: boolean, waitMinutes?: string | number): Promise<DeployStatus>;
    /**
     * Method to deploy the selected Metadata Types to the org using Source API
     * @param {string | string[] | { [key: string]: MetadataType }} types Metadata JSON Object with the selected elements to deploy or comma separated values String with the metadata types to deploy to array with Metadata names to deploy
     * @param {string} [testLevel] Level of deployment tests to run. Values are 'NoTestRun', 'RunSpecifiedTests', 'RunLocalTests', 'RunAllTestsInOrg'
     * @param {String | Array<String>} [runTests] String with comma separated test names to execute or list with the test names to execute
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder or package folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder or package folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder or package folder is not a directory
     * @throws {WrongFormatException} If JSON Metadata Object has incorrect format
     * @throws {InvalidFilePathException} If the package file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    deploy(types: string | string[] | {
        [key: string]: MetadataType;
    }, testLevel?: string, runTests?: string | string[], waitMinutes?: string | number): Promise<DeployStatus>;
    /**
     * Method to execute a quick deploy when validation result is success
     * @param {string} deployId Id to deploy the validated deployment (Required)
     * @param {boolean} [useMetadataAPI] True to execute quick deploy using Metadata API Format, false to use Source Format
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    quickDeploy(deployId: string, useMetadataAPI?: boolean): Promise<DeployStatus>;
    /**
     * Method to get the report of a running deployment
     * @param {string} deployId Id to the deployment to get the report (Required)
     * @param {boolean} [useMetadataAPI] True to execute deploy report using Metadata API Format, false to use Source Format
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     */
    deployReport(deployId: string, useMetadataAPI?: boolean, waitMinutes?: string | number): Promise<DeployStatus>;
    /**
     * Method to get the cancel a running deployment
     * @param {string} deployId Id to the deployment to cancel (Required)
     * @param {boolean} [useMetadataAPI] True to execute cancel deploy using Metadata API Format, false to use Source Format
     * @param {string | number} [waitMinutes] Number of minutes to wait for the command to complete and display results
     *
     * @returns {Promise<DeployStatus>} Return a promise with the DeployStatus object with the deploy status result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     */
    cancelDeploy(deployId: string, useMetadataAPI?: boolean, waitMinutes?: string | number): Promise<DeployStatus>;
    /**
     * Method to convert a Metadata API format Project to a Source format
     * @param {string} targetDir Path to the target dir to save the converted project (Required)
     *
     * @returns {Promise<void>} Return an empty promise when conversion finish
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the package folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the package folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the package folder is not a directory
     * @throws {WrongFilePathException} If the package file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the package file not exists or not have access to it
     * @throws {InvalidFilePathException} If the package file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    convertProjectToSFDX(targetDir: string): Promise<void>;
    /**
     * Method to convert a Source format Project to a Metadata API format
     * @param {string} targetDir Path to the target dir to save the converted project (Required)
     *
     * @returns {Promise<void>} Return an empty promise when conversion finish
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     * @throws {WrongFilePathException} If the package file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the package file not exists or not have access to it
     * @throws {InvalidFilePathException} If the package file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    convertProjectToMetadataAPI(targetDir: string): Promise<void>;
    /**
     * Method to create a SFDX Project. This method change the connection object project folder, package folder and package file values when project is created
     * @param {string} projectName Project Name to create (Required)
     * @param {string} [projectFolder] Path to save the project. If undefined use the connection project folder
     * @param {string} [template] Template to use to create the project. Empty by default
     * @param {boolean} [withManifest] True to create the project with manifest, false in otherwise
     *
     * @returns {Promise<SFDXProjectResult>} Return a promise with SFDXProjectResult Object with the creation result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     */
    createSFDXProject(projectName: string, projectFolder?: string, template?: string, withManifest?: boolean): Promise<SFDXProjectResult>;
    /**
     * Method to set an auth org in a Salesforce local project. This command set the selected username or Alias to the connection object when authorize an org.
     * @param {string} [usernameOrAlias] Username or alias to auth. (Must be authorized in the system). If undefined use the connection username or alias
     *
     * @returns {Promise<void>} Return an empty promise when operation finish
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     */
    setAuthOrg(usernameOrAlias?: string): Promise<void>;
    /**
     * Method to export data in a tree format from the connected org
     * @param {string} query Query to extract the data (Required)
     * @param {string} outputPath Path to the folder to (Required)
     * @param {string} [prefix] Prefix to add to the created files
     *
     * @returns {Promise<ExportTreeDataResult[]>} Return an array with the extrated data information
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the output folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the output folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the output folder is not a directory
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    exportTreeData(query: string, outputPath: string, prefix?: string): Promise<ExportTreeDataResult[]>;
    /**
     * Method to import data in a tree format into the connected org
     * @param {string} file Path to the file to import (Required)
     *
     * @returns {Promise<ImportTreeDataResponse>} Return a promise with an object with the ok result and errors on insert
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongFilePathException} If the file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the file not exists or not have access to it
     * @throws {InvalidFilePathException} If the file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    importTreeData(file: string): Promise<ImportTreeDataResponse>;
    /**
     * Method to delete data on bulk mode
     * @param {string} csvfile Path to the CSV file with the ids to delete (Required)
     * @param {string} sObject Records SObject API Name (Required)
     *
     * @returns {Promise<BulkStatus[]>} Return a promise with an array with BulkStatus objects with the delete result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     * @throws {WrongFilePathException} If the csv file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the csv file not exists or not have access to it
     * @throws {InvalidFilePathException} If the csv file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    bulkDelete(csvfile: string, sObject: string): Promise<BulkStatus[]>;
    /**
     * Method to execute an Apex script file on Anonymous context
     * @param {string} scriptfile Path to the script file (Required)
     *
     * @returns {Promise<string>} Return a promise with the execution log as String
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the project folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the project folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the project folder is not a directory
     * @throws {WrongFilePathException} If the script file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the script file not exists or not have access to it
     * @throws {InvalidFilePathException} If the script file is not a file
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    executeApexAnonymous(scriptfile: string): Promise<string>;
    /**
     * Method to get all available user permissions from the connected org
     * @param {string} tmpFolder Temporal folder to save support files (Required)
     *
     * @returns {Promise<string[]>} Return a promise with the list of user permissions
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the temp folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the temp folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the temp folder is not a directory
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    loadUserPermissions(tmpFolder: string): Promise<string[]>;
    /**
     * Method to Retrieve local special types from the connected org
     * @param {string} tmpFolder Temporal folder to save support files (Required)
     * @param {string | { [key: string]: MetadataType }} [types] Metadata JSON Object or Metadata JSON File with the specific types to retrieve. Undefined to retrieve all special types
     * @param {boolean} [compress] true to compress affected files, false in otherwise
     * @param {string} [sortOrder] Compress sort order when compress files
     *
     * @returns {Promise<RetrieveResult>} Return a promise with a RetrieveResult with the retrieve result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the temp folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the temp folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the temp folder is not a directory
     * @throws {WrongFilePathException} If the types file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the types file not exists or not have access to it
     * @throws {InvalidFilePathException} If the types file is not a file
     * @throws {WrongFormatException} If types object or file is not a JSON file or not have the correct Metadata JSON format
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    retrieveLocalSpecialTypes(tmpFolder: string, types?: string | {
        [key: string]: MetadataType;
    }, compress?: boolean, sortOrder?: string): Promise<RetrieveResult>;
    /**
     * Method to Retrieve mixed special types from the connected org. Mixed means that only affect the Metadata Types on your project folder, but download all related data from this types from your org (and not only the local data)
     * @param {string} tmpFolder Temporal folder to save support files (Required)
     * @param {Object} [types] Metadata JSON Object or Metadata JSON File with the specific types to retrieve. Undefined to retrieve all special types
     * @param {boolean} [downloadAll] true to download all related data from any namespace, false to downlaod only the org namespace data
     * @param {boolean} [compress] true to compress affected files, false in otherwise
     * @param {string} [sortOrder] Compress sort order when compress files
     *
     * @returns {Promise<RetrieveResult>} Return a promise with a RetrieveResult with the retrieve result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the temp folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the temp folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the temp folder is not a directory
     * @throws {WrongFilePathException} If the types file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the file not exists or not have access to it
     * @throws {InvalidFilePathException} If the types file is not a file
     * @throws {WrongFormatException} If types object or file is not a JSON file or not have the correct Metadata JSON format
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    retrieveMixedSpecialTypes(tmpFolder: string, types?: string | {
        [key: string]: MetadataType;
    }, downloadAll?: boolean, compress?: boolean, sortOrder?: string): Promise<RetrieveResult>;
    /**
     * Method to Retrieve org special types from the connected org. Org means that affect all Metadata types stored in your org not on your local project.
     * @param {string} tmpFolder Temporal folder to save support files (Required)
     * @param {Object} [types] Metadata JSON Object or Metadata JSON File with the specific types to retrieve. Undefined to retrieve all special types
     * @param {boolean} [downloadAll] true to download all related data from any namespace, false to downlaod only the org namespace data
     * @param {boolean} [compress] true to compress affected files, false in otherwise
     * @param {string} [sortOrder] Compress sort order when compress files
     *
     * @returns {Promise<RetrieveResult>} Return a promise with a RetrieveResult with the retrieve result
     *
     * @throws {ConnectionException} If run other connection process when has one process running or Connection Return an error
     * @throws {DataRequiredException} If required data is not provided
     * @throws {OSNotSupportedException} When run this processes with not supported operative system
     * @throws {WrongDirectoryPathException} If the temp folder is not a String or can't convert to absolute path
     * @throws {DirectoryNotFoundException} If the temp folder not exists or not have access to it
     * @throws {InvalidDirectoryPathException} If the temp folder is not a directory
     * @throws {WrongFilePathException} If the types file is not a String or can't convert to absolute path
     * @throws {FileNotFoundException} If the file not exists or not have access to it
     * @throws {InvalidFilePathException} If the types file is not a file
     * @throws {WrongFormatException} If types object or file is not a JSON file or not have the correct Metadata JSON format
     * @throws {WrongDatatypeException} If the api version is not a Number or String. Can be undefined
     */
    retrieveOrgSpecialTypes(tmpFolder: string, types?: string | {
        [key: string]: MetadataType;
    }, downloadAll?: boolean, compress?: boolean, sortOrder?: string): Promise<RetrieveResult>;
    private handleResponse;
}
