import { AdsWithdrawalConfirmResult, AdsWithdrawalInitResult, AssignAccountsResult, AssignResult, BatchResult, BidResult, EvmPaymentResult, GatewayPriceInfo, GatewayRechargeResult, GiftInfo, GiftsResult, GiveawayPremiumResult, GiveawayStarsResult, LoginCodeResult, MyAssetsResult, MyBidsResult, NftTransferRecipient, NftTransferRequest, NftWithdrawalConfirmResult, NftWithdrawalInitResult, NumberInfo, NumbersResult, OfferResult, PremiumPrices, PremiumTransaction, ProfileInfo, PurchaseItem, PurchaseResult, RecipientInfo, SessionInfo, StarsPrice, StarsPrices, StarsTransaction, StarsWithdrawalConfirmResult, StarsWithdrawalInitResult, StarsWithdrawalState, StartAuctionResult, SubscriptionResult, TerminateSessionsResult, TopupTransaction, TransactionResult, UsernameInfo, UsernamesResult, WalletInfo } from "./types/results"; import { SessionStorage } from "./storage/base"; export declare class FragmentClient { cookies: Record; timeout: number; seed: string | null; apiKey: string | null; apiProvider: string; walletVersion: string; proxy: string | null; private _hasTonToken; private _sessionStorage; private _sessionId; private _autoRefresh; constructor(params: { cookies: Record | string; seed?: string | null; apiKey?: string | null; apiProvider?: string; walletVersion?: string; timeout?: number; proxy?: string | null; sessionStorage?: SessionStorage | null; sessionId?: string | null; autoRefreshCookies?: boolean; }); get hasWallet(): boolean; get hasTonToken(): boolean; get sessionStorage(): SessionStorage | null; requireCookies(): Record; requireWallet(): void; requireTonToken(): void; private _saveCookies; /** * Re-authenticate and refresh session cookies. */ refreshCookies(): Promise>; /** * Create a FragmentClient from stored session cookies. */ static fromStorage(params: { sessionStorage: SessionStorage; sessionId: string; seed?: string | null; apiKey?: string | null; apiProvider?: string; walletVersion?: string; timeout?: number; proxy?: string | null; autoRefreshCookies?: boolean; }): Promise; static authenticate(params: { seed: string; walletVersion?: string; phone?: string; printQr?: boolean; onStatus?: (status: string, payload: any) => void; timeout?: number; }): Promise>; getStarsRecipient(username: string): Promise; getPremiumRecipient(username: string, months?: number): Promise; getAdsTopupRecipient(username: string): Promise; getGiveawayStarsRecipient(channel: string, winners?: number, amount?: number): Promise; getGiveawayPremiumRecipient(channel: string, winners?: number, months?: number): Promise; purchase(itemsOrType: Array | PurchaseItem> | Record | PurchaseItem | string, username?: string | null, amount?: number | null, months?: number | null, showSender?: boolean, paymentMethod?: string): Promise; batchPurchase(items: Array | PurchaseItem>, paymentMethod?: string): Promise; purchaseStars(username: string, amount: number, showSender?: boolean, paymentMethod?: string): Promise; purchasePremium(username: string, months: number, showSender?: boolean, paymentMethod?: string): Promise; topupGram(username: string, amount: number, showSender?: boolean): Promise; topupTon(username: string, amount: number, showSender?: boolean): Promise; giveawayStars(channel: string, winners: number, amount: number, paymentMethod?: string): Promise; giveawayPremium(channel: string, winners: number, months?: number, paymentMethod?: string): Promise; placeBid(itemType: number, slug: string, bid: number): Promise; makeOffer(itemType: number, slug: string, amount: number): Promise; cancelAuction(itemType: number, slug: string): Promise; subscribeToItem(itemType: number, slug: string): Promise; unsubscribeFromItem(itemType: number, slug: string): Promise; initAdsWithdrawal(transactionId: string): Promise; confirmAdsWithdrawal(transactionId: string, confirmHash: string): Promise; getGatewayPrice(accountId: string, credits: number): Promise; rechargeGateway(accountId: string, credits: number): Promise; getWallet(): Promise; searchUsernames(query?: string, sort?: string | null, filter?: string | null, offsetId?: string | null): Promise; searchNumbers(query?: string, sort?: string | null, filter?: string | null, offsetId?: string | null): Promise; searchGifts(query?: string, collection?: string | null, sort?: string | null, filter?: string | null, view?: string | null, attr?: Record | null, offset?: number | null): Promise; getUsernameInfo(username: string): Promise; getNumberInfo(number: string): Promise; getGiftInfo(slug: string): Promise; getStarsPrices(): Promise; getStarsPrice(quantity: number): Promise; getPremiumPrices(): Promise; getStarsHistory(sort?: string): Promise; getPremiumHistory(sort?: string): Promise; getTopupHistory(sort?: string): Promise; getProfile(): Promise; getMyBids(itemType?: string, sort?: string): Promise; getMyAssets(itemType?: string): Promise; getAssignAccounts(itemType: number, _slug: string): Promise; assignToTelegram(itemType: number, slug: string, assignTo?: string | null): Promise; startAuction(itemType: number, slug: string, minAmount: number, maxAmount?: number): Promise; sellAsset(itemType: number, slug: string, price: number): Promise; searchNftTransferRecipient(query: string): Promise; initNftTransfer(slug: string, recipient: string): Promise; transferNft(reqId: string, showSender?: boolean): Promise; getSessions(): Promise; terminateSession(sessionId: string): Promise; getOrdersHistory(itemType: number, username: string, offsetId: string): Promise>; getOwnersHistory(itemType: number, username: string, offsetId: string): Promise>; /** * Load more offer history for an item. */ getOffersHistory(itemType: number, username: string, offsetId: string): Promise>; getLoginCode(number: string): Promise; toggleLoginCodes(number: string, canReceive: boolean): Promise; terminateSessions(number: string): Promise; getNftWithdrawalState(transaction: string): Promise>; initNftWithdrawal(transaction: string, keepGift?: boolean): Promise; confirmNftWithdrawal(transaction: string, confirmHash: string, keepGift?: boolean): Promise; getStarsWithdrawalState(transaction: string): Promise; initStarsWithdrawal(transaction: string, withdrawalData: string): Promise; confirmStarsWithdrawal(transaction: string, withdrawalData: string, confirmHash: string): Promise; confirmRequest(reqId: string, boc: string, referer?: string): Promise>; call(method: string, data?: Record | null, pageUrl?: string): Promise>; } //# sourceMappingURL=client.d.ts.map