import { TierType } from './types/TierType'; export declare const GST_RATE_PERCENT: number; type GSTSettings = { number?: string; type?: 'OWN' | 'HOST'; disabled?: boolean; }; /** * Returns true if GST is enabled for this account */ export declare const accountHasGST: (account: { settings?: { GST?: GSTSettings; parent?: { settings?: { GST?: GSTSettings; }; }; parentCollective?: { settings?: { GST?: GSTSettings; }; }; }; } | null) => boolean; /** * Returns true if the given tier type can be subject to VAT */ export declare const isTierTypeSubjectToGST: (tierType: TierType | `${TierType}`) => boolean; /** * Returns true if GST may apply. * * @param tierType - the tier type (eg. SUPPORT, TICKET...) * @param originCOuntry - two letters country where GST is applied */ export declare const gstMayApply: (tierType: TierType | `${TierType}`) => boolean; /** * Calculates the GST rate. * * @param tierType - the tier type (eg. SUPPORT, TICKET...) * @param originCountry - two letters country where GST is applied * @param userCountry - two letters country code of the payer * * @returns {Number} `0` if no GST applies or the percentage as a number between 0 and 100 */ export declare const getGstPercentage: (tierType: TierType | `${TierType}`, originCountry: string | null, userCountry: string | null) => number; export {};