/** * 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 SwitchArt} type as well as the de/serializer. * However don't refer to it in your code but use the {@link SwitchArt} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type SwitchArtRecord = { RepetitivePNFT: { name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; }; RepetitiveCNFT: { name: string; symbol: string; uri: string; tree: web3.PublicKey; sellerFeeBasisPoints: number; }; }; /** * Union type respresenting the SwitchArt data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isSwitchArt*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type SwitchArt = beet.DataEnumKeyAsKind; export declare const isSwitchArtRepetitivePNFT: (x: SwitchArt) => x is { __kind: "RepetitivePNFT"; } & Omit<{ name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; }, "void"> & { __kind: 'RepetitivePNFT'; }; export declare const isSwitchArtRepetitiveCNFT: (x: SwitchArt) => x is { __kind: "RepetitiveCNFT"; } & Omit<{ name: string; symbol: string; uri: string; tree: web3.PublicKey; sellerFeeBasisPoints: number; }, "void"> & { __kind: 'RepetitiveCNFT'; }; /** * @category userTypes * @category generated */ export declare const switchArtBeet: beet.FixableBeet; //# sourceMappingURL=SwitchArt.d.ts.map