import { Subscription } from '../../../../utilities/types/subscription'; import { License } from '../../../../utilities/types/license'; type IsSubmittingState = { cancelSubNow: boolean; cancelSubPeriodEnd: boolean; cancelLicense: boolean; reactivateSub: boolean; }; export declare class SalableCancellationButton { errorMessage: string | null; successMessage: ({ message: string; } & ({ type: 'REACTIVATE'; } | ({ type: 'CANCEL'; } & ({ when: 'NOW'; } | { when: 'END'; date: string; })))) | null; apiUrl: string | null; state: Subscription | License | null; isSubmittingState: IsSubmittingState; /** * The generated token for this session from the Salable API **/ sessionToken: string; /** * The uuid of the license or subscription to cancel **/ uuid: string; environment?: string; validateProp(newValue: string, propName: string): void; private getSvg; private validateProps; private fetchWrapper; private fetchUuid; private isSubscription; private reactivateSubscription; private cancelSubscription; private cancelLicense; private formatDate; componentWillLoad(): Promise; render(): any; } export {};