import * as anchor from "@coral-xyz/anchor"; import { Address, Instruction } from "@solana/kit"; import { CreateCampaignArgs, GrantRoleArgs, RevokeRoleArgs, UpdateCampaignArgs } from "../clients/generated/js/src"; export declare class MoonshotBlindboxV2 { private readonly skipSimulation; private readonly rpc; private readonly estimateAndSetComputeUnitLimit; constructor(rpcUrl: string, skipSimulation?: boolean); /** * Creates a transaction to grant a role to an account. * @param signer - The signer of the transaction * @param args - The arguments for the grant role transaction * @param args.configId - The ID of the config * @param args.accountToGrant - The address of the account to grant the role to * @param args.role - The role to grant * @returns The grant role transaction */ getGrantRoleTransaction(signer: Address, args: GrantRoleArgs): Promise; /** * Creates a transaction to revoke a role from an account. * @param signer - The signer of the transaction * @param args - The arguments for the revoke role transaction * @param args.configId - The ID of the config * @param args.accountToRevoke - The address of the account to revoke the role from * @param args.role - The role to revoke * @returns The revoke role transaction */ getRevokeRoleTransaction(signer: Address, args: RevokeRoleArgs): Promise; /** * Creates a transaction to create a campaign. * @param signer - The signer of the transaction * @param args - The arguments for the create campaign transaction * @param args.configId - The ID of the config * @param args.campaignId - The ID of the campaign * @param args.mintAccount - The mint account for the campaign * @returns The create campaign transaction */ getCreateCampaignTransaction(signer: Address, args: CreateCampaignArgs): Promise; /** * Creates a transaction to update a campaign. * @param signer - The signer of the transaction * @param args - The arguments for the update campaign transaction * @param args.configId - The ID of the config * @param args.campaignId - The ID of the campaign * @returns The update campaign transaction */ getUpdateCampaignTransaction(signer: Address, args: UpdateCampaignArgs): Promise; getLatestBlockhash(): Promise>; createV0Transaction(ixs: Instruction[], signer: Address): Promise; } //# sourceMappingURL=MoonshotBlindboxV2.d.ts.map