import { ApiV2 } from 'xdl'; import * as appleApi from '../../appleApi'; import { IosAppCredentials, IosCredentials, IosDistCredentials, IosPushCredentials } from '../credentials'; import ApiClient from './IosApiV2Wrapper'; export interface AppLookupParams { accountName: string; projectName: string; bundleIdentifier: string; } export declare function getAppLookupParams(experienceName: string, bundleIdentifier: string): { accountName: string; projectName: string; bundleIdentifier: string; }; interface CredentialsCache { [accountName: string]: { appCredentials: { [experienceNameBundleIdentifier: string]: IosAppCredentials; }; userCredentials: { [id: string]: IosDistCredentials | IosPushCredentials; }; }; } export default class IosApi { client: ApiClient; credentials: CredentialsCache; isPrefetched: { [accountName: string]: boolean; }; constructor(api: ApiV2); getAllCredentials(accountName: string): Promise; getDistCert(appLookupParams: AppLookupParams): Promise; createDistCert(accountName: string, credentials: appleApi.DistCert): Promise; updateDistCert(id: number, accountName: string, credentials: appleApi.DistCert): Promise; deleteDistCert(id: number, accountName: string): Promise; useDistCert(appLookupParams: AppLookupParams, userCredentialsId: number): Promise; createPushKey(accountName: string, credentials: appleApi.PushKey): Promise; updatePushKey(id: number, accountName: string, credentials: appleApi.PushKey): Promise; deletePushKey(id: number, accountName: string): Promise; getPushKey(appLookupParams: AppLookupParams): Promise; usePushKey(appLookupParams: AppLookupParams, userCredentialsId: number): Promise; getPushCert(appLookupParams: AppLookupParams): Promise<{ pushId: string; pushP12: string; pushPassword: string; } | null>; deletePushCert(appLookupParams: AppLookupParams): Promise; getAppCredentials(appLookupParams: AppLookupParams): Promise; getProvisioningProfile(appLookupParams: AppLookupParams): Promise; updateProvisioningProfile(appLookupParams: AppLookupParams, provisioningProfile: appleApi.ProvisioningProfile): Promise; deleteProvisioningProfile(appLookupParams: AppLookupParams): Promise; private getAppCredentialsCacheIndex; private removeUserCredentialFromCache; private ensureAppCredentials; private refetchUserCredentials; private refetchAppCredentials; } export {};