import { type Address, Cell, type Contract, type ContractProvider, type Sender } from 'ton-core'; /** * Class representing a Non-Fungible Token (NFT) Offer contract. */ export declare class NftOffer implements Contract { readonly address: Address; readonly init?: { code: Cell; data: Cell; } | undefined; /** * Constructs an instance of the NftOffer contract. * @param address - The address of the contract. * @param init - The initial code and data for the contract. */ constructor(address: Address, init?: { code: Cell; data: Cell; } | undefined); static code: Cell; /** * Builds the data cell for an NFT offer. * @param data - The data for the NFT offer. * @returns A cell containing the data for the NFT offer. */ static buildDataCell(data: NftOfferData): Cell; /** * Creates an NftOffer instance from an address. * @param address - The address to create from. * @returns A new NftOffer instance. */ static createFromAddress(address: Address): NftOffer; /** * Creates an NftOffer instance from a configuration object. * @param config - The configuration data for the NFT offer. * @param workchain - The workchain ID (default is 0). * @returns A new NftOffer instance. */ static createFromConfig(config: NftOfferData, workchain?: number): Promise; /** * Sends a deploy command to the contract. * @param provider - The contract provider. * @param via - The sender of the deploy command. * @param value - The value to send with the command. */ sendDeploy(provider: ContractProvider, via: Sender, value: bigint): Promise; /** * Sends a cancel offer command to the contract. * @param provider - The contract provider. * @param via - The sender of the cancel command. * @param params - Parameters for the cancel command including optional message and value. */ sendCancelOffer(provider: ContractProvider, via: Sender, params: { message?: string; value: bigint; }): Promise; /** * Sends a cancel offer command to the contract by the marketplace. * @param provider - The contract provider. * @param via - The sender of the cancel command. * @param params - Parameters for the cancel command including amount, optional message and value. */ sendCancelOfferByMarketplace(provider: ContractProvider, via: Sender, params: { amount: bigint; message?: string; value: bigint; }): Promise; /** * Gets the data of the offer. * @param provider - The contract provider. * @returns The current data of the offer. */ getOfferData(provider: ContractProvider): Promise<{ offerType: bigint; isComplete: boolean; createdAt: bigint; finishAt: bigint; marketplaceAddress: Address; nftAddress: Address; offerOwnerAddress: Address; fullPrice: bigint; marketplaceFeeAddress: Address; marketplaceFactor: bigint; marketplaceBase: bigint; royaltyAddress: Address; royaltyFactor: bigint; royaltyBase: bigint; profitPrice: bigint; }>; } /** * Type definition for the data of an NFT offer. */ export type NftOfferData = { isComplete: boolean; createdAt: number; finishAt: number; marketplaceAddress: Address; nftAddress: Address; offerOwnerAddress: Address; fullPrice: bigint; marketplaceFeeAddress: Address; royaltyAddress: Address; marketplaceFactor: number; marketplaceBase: number; royaltyFactor: number; royaltyBase: number; }; //# sourceMappingURL=NftOffer.d.ts.map