import { AccessKey, Account, App, CollaboratorMap, Deployment, DeploymentMetrics, Headers, Package, PackageInfo, CodePushError } from "./types"; declare class AccountManager { static AppPermission: { OWNER: string; COLLABORATOR: string; }; private _accessKey; private _requestManager; private _adapter; private _fileUploadClient; constructor(accessKey: string, customHeaders?: Headers, serverUrl?: string, proxy?: string); get accessKey(): string; isAuthenticated(throwIfUnauthorized?: boolean): Promise; addAccessKey(friendlyName: string, ttl?: number): Promise; getAccessKeys(): Promise; removeAccessKey(name: string): Promise; getAccountInfo(): Promise; getApps(): Promise; getApp(appName: string): Promise; addApp(appName: string, appOs: string, appPlatform: string, manuallyProvisionDeployments?: boolean): Promise; removeApp(appName: string): Promise; renameApp(oldAppName: string, newAppName: string): Promise; transferApp(appName: string, orgName: string): Promise; getCollaborators(appName: string): Promise; addCollaborator(appName: string, email: string): Promise; removeCollaborator(appName: string, email: string): Promise; addDeployment(appName: string, deploymentName: string): Promise; clearDeploymentHistory(appName: string, deploymentName: string): Promise; getDeployments(appName: string): Promise; getDeployment(appName: string, deploymentName: string): Promise; renameDeployment(appName: string, oldDeploymentName: string, newDeploymentName: string): Promise; removeDeployment(appName: string, deploymentName: string): Promise; getDeploymentMetrics(appName: string, deploymentName: string): Promise; getDeploymentHistory(appName: string, deploymentName: string): Promise; release(appName: string, deploymentName: string, filePath: string, targetBinaryVersion: string, updateMetadata: PackageInfo, uploadProgressCallback?: (progress: number) => void): Promise; patchRelease(appName: string, deploymentName: string, label: string, updateMetadata: PackageInfo): Promise; promote(appName: string, sourceDeploymentName: string, destinationDeploymentName: string, updateMetadata: PackageInfo): Promise; rollback(appName: string, deploymentName: string, targetRelease?: string): Promise; getAccessKey(accessKeyName: string): CodePushError; getSessions(): CodePushError; patchAccessKey(oldName: string, newName?: string, ttl?: number): CodePushError; removeSession(machineName: string): CodePushError; private packageFileFromPath; private generateRandomFilename; private getDeprecatedMethodError; } export = AccountManager;