import { ITelegramClient } from '../../client.types.js'; import { InputPeerLike } from '../../types/index.js'; import { Message } from '../../types/messages/message.js'; /** * Pay for other user's star gift upgrade. * * > **Note**: this method is not indended to be used by full-fledged clients, * > as this method hides the actual invoice and payment form from the user. * > For GUI clients, you should refer to the method's source code and * > present the payment form to the user. * * @returns Service message about the payment for the upgrade, if one was generated. */ export declare function prepayStarGiftUpgrade(client: ITelegramClient, params: { peer: InputPeerLike; /** Prepaid upgrade hash, taken from `SavedStarGift.prepaidUpgradeHash` */ hash: string; /** * Whether to dispatch the new message event * to the client's update handler. */ shouldDispatch?: true; }): Promise;