interface ListParams { limit?: number; offset?: number; startdate?: string; enddate?: string; appName?: string; } export interface IapticEvent { tag: string; type: string; eventId: string; context: { appName: string; eventType: string; eventDate: string; eventDateMs?: number; applicationUsername?: string; req_id?: string; includeHeavyData?: boolean; }; content: { purchases: Array<{ platform: string; receiptId: string; purchaseId: string; productId: string; }>; transactions: Array<{ productId: string; offerId: string | null; purchaseId: string; transactionId: string; sandbox: boolean; platform: string; purchaseDate: string; isPending: boolean; isConsumed: boolean; isAcknowledged: boolean; quantity: number; amountUSD: number | null; amountMicros: number | null; currency: string | null; }>; refreshFailures: Array<{ platform: string; reason: string; }>; products: Array<{ id: string; type: string; currency: string; offers: Array<{ id: string; pricingPhases: Array<{ priceMicros: number; currency: string; }>; }>; }>; exchangeRates: Array; claims: Array; notifications: Array; tags: Record; }; } export declare class IapticAPI { private client; private appName; private apiKey; private defaultAppName; private defaultApiKey; private masterKey; constructor(apiKey: string, appName: string, masterKey?: string); private initializeClient; switchApp(apiKey: string, appName: string): void; resetToDefaultApp(): void; getCurrentAppInfo(): { appName: string; isDefault: boolean; usingMasterKey: boolean; }; getCustomers(params?: { limit?: number; offset?: number; appName?: string; }): Promise; getCustomer(customerId: string, params?: { appName?: string; }): Promise; getPurchases(params?: ListParams & { customerId?: string; }): Promise; getPurchase(purchaseId: string, params?: { appName?: string; }): Promise; getTransactions(params?: ListParams & { purchaseId?: string; }): Promise; getTransaction(transactionId: string, params?: { appName?: string; }): Promise; getStats(params?: { appName?: string; }): Promise; getAppStats(params?: { appName?: string; }): Promise; validateReceipt(data: { id: string; type: string; transaction: any; additionalData?: { applicationUsername?: string; }; }): Promise; getStripePrices(): Promise; createStripeCheckout(data: { offerId: string; applicationUsername: string; successUrl: string; cancelUrl: string; mode?: 'payment' | 'subscription'; accessToken?: string; }): Promise; createStripePortal(data: { id: string; accessToken: string; returnUrl: string; }): Promise; getStripePurchases(params: { accessToken?: string; }): Promise; getEvents(params?: ListParams): Promise; getValidatorVersion(): Promise; getEventDetails(eventId: string, params?: { receipts?: boolean; }): Promise; } export {};