import type { Fetcher } from "./fetcher"; import { type CreateListingActionsRequest, type CreateListingActionsResponse, type CrossChainFulfillmentRequest, type CrossChainFulfillmentResponse, type GetBestListingResponse, type GetListingsResponse, type SweepCollectionRequest, type SweepCollectionResponse, type TraitFilter } from "./types"; /** * Listing-related API operations */ export declare class ListingsAPI { private fetcher; constructor(fetcher: Fetcher); /** * Gets all listings for a given collection. * @param collectionSlug The collection slug * @param limit The number of listings to return * @param next The cursor for pagination * @param includePrivateListings Whether to include private listings (default: false) */ getAllListings(collectionSlug: string, limit?: number, next?: string, includePrivateListings?: boolean): Promise; /** * Gets the best listing for a given token. * @param collectionSlug The collection slug * @param tokenId The token ID * @param includePrivateListings Whether to include private listings (default: false) */ getBestListing(collectionSlug: string, tokenId: string | number, includePrivateListings?: boolean): Promise; /** * Gets the best listings for a given collection. Pass `traits` to filter * server-side by item traits (multiple entries are AND-combined). */ getBestListings(collectionSlug: string, limit?: number, next?: string, includePrivateListings?: boolean, traits?: TraitFilter[]): Promise; /** * Get cross-chain fulfillment data for one or more listings. * Supports same-chain, cross-token, and cross-chain purchases. * @param request The cross-chain fulfillment request */ getCrossChainFulfillmentData(request: CrossChainFulfillmentRequest): Promise; /** * Bulk-buy items from a collection. * If a requested item becomes unavailable, the system can automatically * substitute it with the next cheapest listing from the same collection * (enabled by default). Returns an ordered list of transactions to execute. */ sweepCollection(request: SweepCollectionRequest): Promise; /** * Get an ordered list of blockchain actions required to create one or more * listings — token approvals + a final action containing the Seaport order * to sign. Useful for clients that prefer the server to compute the * approval graph. */ createListingActions(request: CreateListingActionsRequest): Promise; }