import * as solana_agent_kit from 'solana-agent-kit'; import { SolanaAgentKit, signOrSendTX } from 'solana-agent-kit'; import { PublicKey, Transaction, VersionedTransaction } from '@solana/web3.js'; import * as _metaplex_foundation_digital_asset_standard_api from '@metaplex-foundation/digital-asset-standard-api'; import { DasApiAsset, GetAssetsByAuthorityRpcInput, GetAssetsByCreatorRpcInput, SearchAssetsRpcInput } from '@metaplex-foundation/digital-asset-standard-api'; interface Creator$1 { address: string; percentage: number; } interface CollectionOptions { name: string; uri: string; royaltyBasisPoints?: number; creators?: Creator$1[]; } interface SPLAuthorityInput { mintAuthority?: PublicKey | null; freezeAuthority?: PublicKey | null; updateAuthority?: PublicKey | null; isMutable?: boolean; } interface DeployCollectionResponse { collectionAddress: PublicKey; signature?: string; signedTransaction?: Awaited>; } /** * Deploy a new NFT collection * @param agent SolanaAgentKit instance * @param options Collection options including name, URI, royalties, and creators * @returns Object containing collection address and metadata */ declare function deploy_collection(agent: SolanaAgentKit, options: CollectionOptions): Promise; interface MintCollectionNFTResponse { mint: PublicKey; metadata: PublicKey; tokenAccount?: PublicKey; signature?: string; signedTransaction?: Awaited>; } /** * Mint a new NFT as part of an existing collection * @param agent SolanaAgentKit instance * @param collectionMint Address of the collection's master NFT * @param metadata NFT metadata object * @param recipient Optional recipient address (defaults to wallet address) * @returns Object containing NFT mint address and token account */ declare function mintCollectionNFT(agent: SolanaAgentKit, collectionMint: PublicKey, metadata: { name: string; uri: string; sellerFeeBasisPoints?: number; creators?: Array<{ address: string; share: number; }>; }, recipient?: PublicKey): Promise; /** * Deploy a new SPL token * @param agent SolanaAgentKit instance * @param name Name of the token * @param uri URI for the token metadata * @param symbol Symbol of the token * @param decimals Number of decimals for the token (default: 9) * @param initialSupply Initial supply to mint (optional) * @returns Object containing token mint address and initial account (if supply was minted) */ declare function deploy_token(agent: SolanaAgentKit, name: string, uri: string, symbol: string, authority?: SPLAuthorityInput, decimals?: number, initialSupply?: number): Promise; /** * Deploy a new SPL token * @param agent SolanaAgentKit instance * @param name Name of the token * @param uri URI for the token metadata * @param symbol Symbol of the token * @param decimals Number of decimals for the token (default: 9) * @param initialSupply Initial supply to mint (optional) * @returns Object containing token mint address and initial account (if supply was minted) */ declare function deploy_token2022(agent: SolanaAgentKit, name: string, uri: string, symbol: string, decimals?: number, initialSupply?: number): Promise<{ mint: PublicKey; }>; /** * Fetch asset details using the Metaplex DAS API * @param agent SolanaAgentKit instance * @param assetId ID of the asset to fetch * @returns Asset details */ declare function get_asset(agent: SolanaAgentKit, assetId: string): Promise; /** * Fetch assets by authority using the Metaplex DAS API * @param agent SolanaAgentKit instance * @param params Parameters for fetching assets by authority * @returns List of assets associated with the given authority */ declare function get_assets_by_authority(agent: SolanaAgentKit, params: GetAssetsByAuthorityRpcInput): Promise<_metaplex_foundation_digital_asset_standard_api.DasApiAssetList>; /** * Fetch assets by creator using the Metaplex DAS API * @param agent SolanaAgentKit instance * @param params Parameters for fetching assets by creator * @returns List of assets created by the specified creator */ declare function get_assets_by_creator(agent: SolanaAgentKit, params: GetAssetsByCreatorRpcInput): Promise<_metaplex_foundation_digital_asset_standard_api.DasApiAssetList>; declare function listNFTForSale(agent: SolanaAgentKit, nftMint: PublicKey, price: number): Promise>>; declare function cancelListing(agent: SolanaAgentKit, nftMint: PublicKey): Promise>>; interface StoreInitOptions { walletPath?: string; privateKey?: number[] | Uint8Array | string; isMainnet?: boolean; customRPC?: string; } interface CreateCollectionOptions { collectionSymbol: string; collectionName: string; collectionDescription: string; mainImageUrl?: string; coverImageUrl?: string; } interface CreateSingleOptions { itemName: string; sellerFee: number; itemAmount: number; itemSymbol: string; itemDescription: string; traits: any; price?: number; mainImageUrl?: string; coverImageUrl?: string; splHash?: string; poolName?: string; } /** * Create a collection on 3Land * @param optionsWithBase58 represents the privateKey of the wallet - can be an array of numbers, Uint8Array or base58 string * @param collectionOpts represents the options for the collection creation * @returns */ declare function createCollection(optionsWithBase58: StoreInitOptions, collectionOpts: CreateCollectionOptions, priorityFeeParam?: number): Promise; /** * Create a single edition on 3Land * @param optionsWithBase58 represents the privateKey of the wallet - can be an array of numbers, Uint8Array or base58 string * @param collectionAccount represents the account for the nft collection * @param createItemOptions the options for the creation of the single NFT listing * @returns */ declare function createSingle(optionsWithBase58: StoreInitOptions, collectionAccount: string, createItemOptions: CreateSingleOptions, isMainnet?: boolean, withPool?: boolean, priorityFeeParam?: number): Promise<{ transactionId: string; payerPublicKey: string; }>; /** * Search for assets using the Metaplex DAS API * @param agent SolanaAgentKit instance * @param params Parameters for searching assets * @returns List of assets matching the search criteria */ declare function search_assets(agent: SolanaAgentKit, params: SearchAssetsRpcInput): Promise<_metaplex_foundation_digital_asset_standard_api.DasApiAssetList>; /** * Bid on an NFT listed on Magic Eden * @param agent SolanaAgentKit instance * @param tokenMint The mint address of the NFT to bid on * @param price The price in SOL to bid for the NFT * @param options Optional parameters for auction house address and buyer referral */ declare function bid_on_magiceden_nft(agent: SolanaAgentKit, tokenMint: string, price: number, options?: { auctionHouseAddress?: string; buyerReferral?: string; }): Promise<{ signedTransaction: VersionedTransaction; signature?: undefined; } | { signature: string; signedTransaction?: VersionedTransaction; }>; interface CollectionStatsResponse { symbol: string; floorPrice: number; listedCount: number; avgPrice24hr: number; volumeAll: number; } /** * Get the stats for a collection given its symbol. * @param agent SolanaAgentKit instance * @param symbol The symbol of the collection to fetch stats for * @param options Optional parameters for time window and listing aggregation mode * @returns Collection stats including floor price, listed count, average price, and total volume */ declare function get_magiceden_collection_stats(agent: SolanaAgentKit, symbol: string, options?: { timeWindow?: "24h" | "7d" | "30d" | "all"; listingAggMode?: boolean; }): Promise; /** * Get the listings for a collection given its symbol. * @param agent SolanaAgentKit instance * @param symbol The symbol of the collection to fetch listings for * @param options Optional parameters for pagination, price range, and sorting */ declare function get_magiceden_collection_listings(agent: SolanaAgentKit, symbol: string, options?: { limit?: number; offset?: number; min_price?: number; max_price?: number; sort?: "updatedAt" | "listPrice"; sort_direction?: "asc" | "desc"; }): Promise; interface GetListingsResponse { pdaAddress: string; auctionHouse: string; tokenAddress: string; tokenMint: string; seller: string; sellerReferral: string; tokenSize: number; price: number; rarity: Rarity; extra: Extra; expiry: number; token: Token; listingSource: string; } interface Extra { img: string; } interface Rarity { } interface Token { mintAddress: string; owner: string; supply: number; collection: string; name: string; updateAuthority: string; primarySaleHappened: boolean; sellerFeeBasisPoints: number; image: string; animationUrl: string; externalUrl: string; attributes: Attribute[]; properties: Properties; } interface Attribute { trait_type: string; value: number | string; } interface Properties { category: string; files: File[]; creators: Creator[]; } interface Creator { address: string; share: number; } interface File { uri: string; type: string; } /** * List an NFT on Magic Eden * @param agent SolanaAgentKit instance * @param tokenMint The mint address of the NFT to list * @param tokenAccount The token account address of the NFT to list * @param price The price in SOL to list the NFT for * @param options Optional parameters for auction house address and seller referral * @returns */ declare function list_nft_on_magiceden(agent: SolanaAgentKit, tokenMint: string, tokenAccount: string, price: number, options?: { auctionHouseAddress?: string; sellerReferral?: string; }): Promise<{ signedTransaction: VersionedTransaction; signature?: undefined; } | { signature: string; signedTransaction?: VersionedTransaction; }>; interface GetPopularCollectionsResponse { symbol: string; name: string; description: string; image: string; floorPrice: number; volumeAll: number; hasCNFTs: boolean; } declare function get_magiceden_popular_collections(agent: SolanaAgentKit, options?: { timeRange: "1h" | "1d" | "7d" | "30d"; }): Promise; declare const NFTPlugin: { name: string; methods: { deployCollection: typeof deploy_collection; deployToken: typeof deploy_token; getAsset: typeof get_asset; getAssetsByAuthority: typeof get_assets_by_authority; getAssetsByCreator: typeof get_assets_by_creator; mintCollectionNFT: typeof mintCollectionNFT; searchAssets: typeof search_assets; deployToken2022: typeof deploy_token2022; listNFTForSale: typeof listNFTForSale; cancelListing: typeof cancelListing; create3LandCollection: typeof createCollection; create3LandSingle: typeof createSingle; getMagicEdenCollectionStats: typeof get_magiceden_collection_stats; getMagicEdenPopularCollections: typeof get_magiceden_popular_collections; listNFTOnMagicEden: typeof list_nft_on_magiceden; bidOnMagicEdenNFT: typeof bid_on_magiceden_nft; getMagicEdenCollectionListings: typeof get_magiceden_collection_listings; }; actions: solana_agent_kit.Action[]; initialize: () => void; }; export { NFTPlugin as default };