import type { TransactionEnvelope } from "@saberhq/solana-contrib"; import type { u64 } from "@saberhq/token-utils"; import { TokenAmount } from "@saberhq/token-utils"; import { PublicKey } from "@solana/web3.js"; import type { MinterInfo, MintProxyProgram } from "../../programs"; import type { Saber } from "../../sdk"; import type { PendingMintAndProxy, PendingMintProxy } from "./types"; /** * Finds the address of a minter. * @param minter * @returns */ export declare const findMinterInfoAddress: (minter: PublicKey) => Promise; export declare class MintProxyWrapper { readonly saber: Saber; readonly program: MintProxyProgram; constructor(saber: Saber); get provider(): import("@saberhq/solana-contrib").AugmentedProvider; getProxyMintAuthority(): Promise<[PublicKey, number]>; new({ hardcap, mintAuthority, tokenMint, tokenProgram, owner, }: { hardcap: u64; mintAuthority: PublicKey; owner?: PublicKey; tokenMint: PublicKey; tokenProgram?: PublicKey; }): Promise; createMintWithProxy(hardcap: u64, mintKey: PublicKey | undefined, decimals: number, owner?: PublicKey | null): Promise; /** * Initializes the mint proxy with the given hardcap. * * The provider must be the mint authority and the owner of the mint. * * @returns */ initMintProxy({ hardCap, }: { hardCap: TokenAmount; }): Promise; getMinterInfoAddress(minter: PublicKey): Promise; /** * Fetches info on a minter. * @param minter * @returns */ fetchMinterInfo(minter: PublicKey): Promise; minterAdd(minter: PublicKey, allowance: u64, owner?: PublicKey): Promise; /** * Updates a minter's allowance. * @param minter * @param allowance * @returns */ minterUpdate(minter: PublicKey, allowance: u64): Promise; minterRemove(minter: PublicKey, owner?: PublicKey): Promise; transferOwnership(nextOwner: PublicKey): TransactionEnvelope; acceptOwnership(): TransactionEnvelope; mintProxyExists(): Promise; } //# sourceMappingURL=index.d.ts.map