import { type Address, Cell, type Contract, type ContractProvider, type Sender } from 'ton-core'; /** * Class representing a NFT fixed price sale contract (Version 2). */ export declare class NftFixedPriceV2 implements Contract { readonly address: Address; readonly init?: { code: Cell; data: Cell; } | undefined; constructor(address: Address, init?: { code: Cell; data: Cell; } | undefined); static code: Cell; /** * Builds the data cell for an NFT fixed price sale. * @param data - The data for the NFT sale. * @returns A cell containing the data for the NFT sale. */ static buildDataCell(data: NftFixPriceSaleV2Data): Cell; /** * Creates an NftFixedPriceV2 instance from an address. * @param address - The address to create from. * @returns A new NftFixedPriceV2 instance. */ static createFromAddress(address: Address): NftFixedPriceV2; /** * Creates an NftFixedPriceV2 instance from a configuration object. * @param config - The configuration data for the NFT sale. * @param workchain - The workchain ID (default is 0). * @returns A new NftFixedPriceV2 instance. */ static createFromConfig(config: NftFixPriceSaleV2Data, 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 coins to the contract. * @param provider - The contract provider. * @param via - The sender of the coins. * @param params - Parameters for the operation, including the value and queryId. */ sendCoins(provider: ContractProvider, via: Sender, params: { value: bigint; queryId: bigint; }): Promise; /** * Sends a command to cancel the sale. * @param provider - The contract provider. * @param via - The sender of the command. * @param params - Parameters for the operation, including the value and queryId. */ sendCancelSale(provider: ContractProvider, via: Sender, params: { value: bigint; queryId: bigint; }): Promise; /** * Sends a command to buy the NFT. * @param provider - The contract provider. * @param via - The sender of the command. * @param params - Parameters for the operation, including the value and queryId. */ sendBuy(provider: ContractProvider, via: Sender, params: { value: bigint; queryId: bigint; }): Promise; /** * Retrieves the sale data from the contract. * @param provider - The contract provider. * @returns An object containing the sale data. */ getSaleData(provider: ContractProvider): Promise<{ isComplete: bigint; createdAt: bigint; marketplaceAddress: Address | null; nftAddress: Address | null; nftOwnerAddress: Address | null; fullPrice: bigint; marketplaceFeeAddress: Address | null; marketplaceFee: bigint; royaltyAddress: Address | null; royaltyAmount: bigint; }>; } /** * Type definition for the data of an NFT fixed price sale, version 2. */ export type NftFixPriceSaleV2Data = { isComplete: boolean; createdAt: number; marketplaceAddress: Address; nftAddress: Address; nftOwnerAddress: Address | null; fullPrice: bigint; marketplaceFeeAddress: Address; marketplaceFee: bigint; royaltyAddress: Address; royaltyAmount: bigint; }; //# sourceMappingURL=NftFixedPriceV2.d.ts.map