import { MaybeArray } from '@fuman/utils'; import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { ArrayPaginatedWithMeta, StarGiftUnique, StarGiftUniqueAttribute, StarGiftUniqueBackdrop } from '../../types/index.js'; import { default as Long } from 'long'; import { LongMap } from '../../../utils/long-utils.js'; export interface InputStarGiftAttributeIds { model?: MaybeArray; pattern?: MaybeArray; backdrop?: MaybeArray; } export declare function _normalizeResaleAttributes(attrs: tl.TypeStarGiftAttributeId[] | InputStarGiftAttributeIds): tl.TypeStarGiftAttributeId[]; export interface ResaleStarGiftsMeta { attributes: { model: LongMap; pattern: LongMap; backdrop: Map; }; attributesHash: tl.Long; counters: tl.RawStarGiftAttributeCounter[]; } /** * Get a list of star gifts up for resale */ export declare function getStarGiftResaleOptions(client: ITelegramClient, params: { /** ID of the gift to get resale options for */ giftId: tl.Long; /** * Sorting attribute * * - `price`: Sort by price * - `num`: Sort by its unique number */ sort?: 'price' | 'num'; /** Whether to filter for options that can be used in a craft */ forCraft?: boolean; /** * Hash of the `attributes` field, as returned by the server in the first response */ attributesHash?: Long; /** Attributes to filter for */ attributes?: tl.TypeStarGiftAttributeId[] | InputStarGiftAttributeIds; /** Offset for pagination */ offset?: string; /** Limit for pagination */ limit?: number; }): Promise>;