/** * This code was GENERATED using the solita package. * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality. * * See: https://github.com/metaplex-foundation/solita */ import * as web3 from '@solana/web3.js'; import * as beet from '@metaplex-foundation/beet'; /** * This type is used to derive the {@link MintAs} type as well as the de/serializer. * However don't refer to it in your code but use the {@link MintAs} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type MintAsRecord = { MplCore: void; MplMetadata: void; MplBubblegum: { merkleTree: web3.PublicKey; }; TokenExtensions: void; }; /** * Union type respresenting the MintAs data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isMintAs*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type MintAs = beet.DataEnumKeyAsKind; export declare const isMintAsMplCore: (x: MintAs) => x is { __kind: "MplCore"; } & Omit & { __kind: 'MplCore'; }; export declare const isMintAsMplMetadata: (x: MintAs) => x is { __kind: "MplMetadata"; } & Omit & { __kind: 'MplMetadata'; }; export declare const isMintAsMplBubblegum: (x: MintAs) => x is { __kind: "MplBubblegum"; } & Omit<{ merkleTree: web3.PublicKey; }, "void"> & { __kind: 'MplBubblegum'; }; export declare const isMintAsTokenExtensions: (x: MintAs) => x is { __kind: "TokenExtensions"; } & Omit & { __kind: 'TokenExtensions'; }; export declare const mintAsBeet: beet.FixableBeet;