import * as api from './app_store_connect_api/sdk.gen'; /** * Options for configuring the App Store Connect client. * @see https://developer.apple.com/documentation/appstoreconnectapi/creating_api_keys_for_app_store_connect_api */ export interface AppStoreConnectOptions { /** * The issuer ID associated with the private key. */ issuerId?: string; /** * The ID of the private key. */ privateKeyId?: string; /** * The private key in PEM format. */ privateKey?: string; /** * The path to the private key file. */ privateKeyFile?: string; /** * A bearer token can be provided directly, which will be used instead of generating a new token */ bearerToken?: string; /** * The time (in seconds) until the token expires (default 10 minutes) */ expirationTime?: number; } export declare class AppStoreConnectClient { private appStoreConnectOptions; private bearerToken; private bearerTokenGeneratedAt; readonly api: typeof api; constructor(appStoreConnectOptions: AppStoreConnectOptions); private getToken; /** * Generates a JWT token for authenticating with the App Store Connect API. * @see https://developer.apple.com/documentation/appstoreconnectapi/generating_tokens_for_api_requests */ private generateAuthToken; /** * Generates a user auth token for authenticating with the App Store Connect API. * @see https://developer.apple.com/documentation/appstoreconnectapi/generating-tokens-for-api-requests#Create-the-JWT-Payload-for-Individual-Keys */ private generateUserAuthToken; }