import { ProductInfo, PurchasedProductInfo } from '../types/in-app-purchase';
import { MiniAppResponseInfo } from '../types/response-types/miniapp';
import { MiniAppError } from '../types/error-types';
/** @internal */
export declare class Purchases {
    /**
     * This will retrieve the list of products details available for In-App Purchases associated with Mini App in the Platform.
     * @returns List of In-app purchase products
     * @see {getAllProducts}
     */
    getAllProducts(): Promise<ProductInfo[] | MiniAppError>;
    /**
     * This will request for the In-App Purchase of a product with product id associated with Mini App in the Platform.
     * @param id Product id of the product to be purchased.
     * @returns Purchased product details and the transaction details of the purchase.
     */
    purchaseProductWith(id: string): Promise<PurchasedProductInfo | MiniAppError>;
    /**
     * This will request to Consume the product that is purchased using consumePurchaseWith API
     * @param id Product id of the product that is purchased.
     * @returns
     */
    consumePurchaseWith(id: string, transactionId: string): Promise<MiniAppResponseInfo | MiniAppError>;
}
