import { type Client } from "./openapi/client"; /** * Options for creating an App Store Connect API client. */ export interface AppStoreConnectConfig { /** * The issuer ID associated with the private key. * Required for Team API keys, optional for Individual API keys. */ issuerId?: string; /** * The ID of the private key. */ privateKeyId?: string; /** * The private key in PEM format. */ privateKey?: string; /** * A bearer token can be provided directly, which will be used instead of generating a new token. */ bearerToken?: string; /** * The token's expiration duration in seconds. (default 20 minutes) * Tokens that expire more than 20 minutes in the future are not valid. */ expirationDuration?: number; /** * The base URL for the API (default https://api.appstoreconnect.apple.com). */ baseUrl?: string; } /** * Create a configured App Store Connect API client. * * Usage: * ```typescript * import { createClient, appsGetCollection } from 'appstore-connect-sdk'; * * const client = createClient({ * privateKeyId: 'YOUR_KEY_ID', * privateKey: 'YOUR_PRIVATE_KEY', * issuerId: 'YOUR_ISSUER_ID', // optional for Individual keys * }); * * const apps = await appsGetCollection({ client }); * console.log(apps.data); * ``` */ export declare function createClient(config: AppStoreConnectConfig): Client; export type { Client }; export * from "./openapi";