declare class ReceiptInfo { cancellation_date: string; cancellation_date_ms: string; cancellation_date_pst: string; cancellation_date_reason: string; expires_date: string; expires_date_ms: string; expires_date_pst: string; in_app_ownership_type: "FAMILY_SHARED" | "PURCHASED"; is_in_intro_offer_period: boolean; is_trial_period: boolean; is_upgraded: boolean; offer_code_ref_name: string; original_purchase_date: string; original_purchase_date_ms: string; original_purchase_date_pst: string; original_transaction_id: string; purchase_date: string; purchase_date_ms: string; purchase_date_pst: string; quantity: number; subscription_group_identifier: string; web_order_line_item_id: string; transaction_id: string; product_id: string; } declare class PendingRenewalInfo { auto_renew_product_id: string; auto_renew_status: number; expiration_intent: number; grace_period_expires_date: string; grace_period_expires_date_ms: string; grace_period_expires_date_pst: string; is_in_billing_retry_period: number; offer_code_ref_name: string; original_transaction_id: string; price_consent_status: string; product_id: string; promotional_offer_id: string; } declare class InApp { cancellation_date: string; cancellation_date_ms: string; cancellation_date_pst: string; cancellation_reason: string; expires_date: string; expires_date_ms: string; expires_date_pst: string; is_in_intro_offer_period: boolean; is_trial_period: boolean; original_purchase_date: string; original_purchase_date_ms: string; original_purchase_date_pst: string; original_transaction_id: string; product_id: string; promotional_offer_id: string; purchase_date: string; purchase_date_ms: string; purchase_date_pst: string; quantity: number; transaction_id: string; web_order_line_item_id: string; } declare class Receipt { adam_id: number; app_item_id: number; application_version: string; bundle_id: string; download_id: number; expiration_date: string; expiration_date_ms: string; expiration_date_pst: string; in_app?: InApp[]; original_application_version: string; original_purchase_date: string; original_purchase_date_ms: string; original_purchase_date_pst: string; preorder_date: string; preorder_date_ms: string; preorder_date_pst: string; receipt_creation_date: string; receipt_creation_date_ms: string; receipt_creation_date_pst: string; receipt_type: string; request_date: string; request_date_ms: string; request_date_pst: string; version_external_identifier: number; } export declare class ResponseBody { environment: "Sandbox" | "Production"; is_retryable: boolean; latest_receipt: string; latest_receipt_info?: Array; pending_renewal_info?: Array; receipt?: Receipt; status: number; } export declare class NotificationType { static CANCEL: string; static DID_CHANGE_RENEWAL_PREF: string; static DID_CHANGE_RENEWAL_STATUS: string; static DID_RECOVER: string; static DID_RENEW: string; static INTERACTIVE_RENEWAL: string; } export declare class NotificationBody { unified_receipt?: ResponseBody; environment: string; auto_renew_status: string; auto_renew_status_change_date: string; bvrs: string; bid: string; password: string; auto_renew_product_id: string; notification_type: string; } export declare class AppleTool { protected _verifyUrl: string; protected _sandboxVerifyUrl: string; onNotify(nb: NotificationBody): Promise; onVerify(receipt: string, password?: any, exclude_old_transactions?: boolean): Promise; signature(nickname: string, create_time: number, appBundleID: string, productIdentifier: string, offerIdentifier: string): { keyIdentifier: string; nonce: string; timestamp: number; signature: NonSharedBuffer; }; } export declare let gAppleTool: AppleTool; export {};