import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { GetAppInstanceResponse, AppInstanceInstalledEnvelope, AppInstanceRemovedEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope } from './index.typings.js'; export { AccountInfo, AppInstalled, AppInstance, AppRemoved, AvailablePlan, BaseEventMetadata, BillingInfo, FreeTrialInfo, FreeTrialPeriod, FreeTrialPeriodWithLiterals, FreeTrialStatus, FreeTrialStatusWithLiterals, GetAppInstanceByInstanceIdRequest, GetAppInstanceRequest, IdentificationData, IdentificationDataIdOneOf, Locale, MessageEnvelope, Multilingual, OwnerInfo, PaidPlanAutoRenewalCancelled, PaidPlanChanged, PaidPlanPurchased, PaymentCycle, PaymentCycleWithLiterals, PlanConvertedToPaid, PlanReactivated, PlanTransferred, ReactivationReason, ReactivationReasonWithLiterals, ResolutionMethod, ResolutionMethodWithLiterals, SiteInfo, SupportedLanguage, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function getAppInstance$1(httpClient: HttpClient): GetAppInstanceSignature; interface GetAppInstanceSignature { /** * Retrieves data about the instance of your app that's installed on a Wix * site and data about the site itself. For example, to check whether the Wix user has installed a free or paid version of your app, * or to check which apps made by Wix are installed on the site. * * You must authenticate this method [as a Wix app](https://dev.wix.com/docs/build-apps/develop-your-app/access/authentication/authenticate-using-oauth#step-2--make-an-authenticated-api-request). * * To retrieve `site.ownerInfo` in the response, you must * have the __READ SITE OWNER EMAIL__ permission scope in addition to * __MANAGE YOUR APP__. */ (): Promise>; } declare const onAppInstanceInstalled$1: EventDefinition; declare const onAppInstanceRemoved$1: EventDefinition; declare const onAppInstancePaidPlanAutoRenewalCancelled$1: EventDefinition; declare const onAppInstancePaidPlanChanged$1: EventDefinition; declare const onAppInstancePaidPlanPurchased$1: EventDefinition; declare const onAppInstancePlanConvertedToPaid$1: EventDefinition; declare const onAppInstancePlanReactivated$1: EventDefinition; declare const onAppInstancePlanTransferred$1: EventDefinition; declare const getAppInstance: MaybeContext & typeof getAppInstance$1>; /** * Triggered when an instance of your app is installed on a Wix site. */ declare const onAppInstanceInstalled: BuildEventDefinition & typeof onAppInstanceInstalled$1; /** * Triggered when an instance of your app is uninstalled from a Wix site. */ declare const onAppInstanceRemoved: BuildEventDefinition & typeof onAppInstanceRemoved$1; /** * Triggered when a Wix user either cancels a paid plan for your app, or cancels the plan's auto-renewal. The * Wix user can continue to use your app until the end of the current billing * cycle. */ declare const onAppInstancePaidPlanAutoRenewalCancelled: BuildEventDefinition & typeof onAppInstancePaidPlanAutoRenewalCancelled$1; /** * Triggered when a Wix user upgrades or downgrades their plan for your app. */ declare const onAppInstancePaidPlanChanged: BuildEventDefinition & typeof onAppInstancePaidPlanChanged$1; /** * Triggered when a Wix user purchases a paid plan for your app. */ declare const onAppInstancePaidPlanPurchased: BuildEventDefinition & typeof onAppInstancePaidPlanPurchased$1; /** * Triggered when a Wix user reaches the end of a free-trial period and is charged successfully. */ declare const onAppInstancePlanConvertedToPaid: BuildEventDefinition & typeof onAppInstancePlanConvertedToPaid$1; /** * Triggered when auto-renewal is turned on for a paid plan. */ declare const onAppInstancePlanReactivated: BuildEventDefinition & typeof onAppInstancePlanReactivated$1; /** * Triggered when a paid plan for your app is transferred to a different Wix account. */ declare const onAppInstancePlanTransferred: BuildEventDefinition & typeof onAppInstancePlanTransferred$1; export { AppInstanceInstalledEnvelope, AppInstancePaidPlanAutoRenewalCancelledEnvelope, AppInstancePaidPlanChangedEnvelope, AppInstancePaidPlanPurchasedEnvelope, AppInstancePlanConvertedToPaidEnvelope, AppInstancePlanReactivatedEnvelope, AppInstancePlanTransferredEnvelope, AppInstanceRemovedEnvelope, GetAppInstanceResponse, getAppInstance, onAppInstanceInstalled, onAppInstancePaidPlanAutoRenewalCancelled, onAppInstancePaidPlanChanged, onAppInstancePaidPlanPurchased, onAppInstancePlanConvertedToPaid, onAppInstancePlanReactivated, onAppInstancePlanTransferred, onAppInstanceRemoved };