import { IAPProduct, InAppPurchase2 } from '@innomobile-native/plugins'; import { Platform } from '@ionic/angular'; import { Store } from '@ngxs/store'; import { IapModel } from '../store/iap.model'; import * as i0 from "@angular/core"; export declare class IapService { iapStore: InAppPurchase2; private store; private platform; private packages; private pwaPackages; private debug; isSupportedNative: boolean; private storePackages; constructor(iapStore: InAppPurchase2, store: Store, platform: Platform, packages: IapModel[], pwaPackages: IapModel[], debug: any); init(validator?: any): void; finish(id: string): boolean; refresh(): void; get(id: string): IAPProduct; purchase(id: string): { then: Function; error: Function; }; private initCordova; private initPwa; private addProduct; private addPackage; private findIndex; private registerPackage; private getIapType; private registerHandlers; /** * Deep diff between two object, using lodash * @param obj1 Object compared * @param obj2 Object to compare with * @return Return a new object who represent the diff */ private getDifferenceBetweenObjects; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }