/** * 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'; import { Creator } from './Creator'; /** * This type is used to derive the {@link CreatorProof} type as well as the de/serializer. * However don't refer to it in your code but use the {@link CreatorProof} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type CreatorProofRecord = { Hash: { fields: [web3.PublicKey]; }; Vec: { fields: [Creator[]]; }; }; /** * Union type respresenting the CreatorProof data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isCreatorProof*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type CreatorProof = beet.DataEnumKeyAsKind; export declare const isCreatorProofHash: (x: CreatorProof) => x is { __kind: "Hash"; } & Omit<{ fields: [web3.PublicKey]; }, "void"> & { __kind: 'Hash'; }; export declare const isCreatorProofVec: (x: CreatorProof) => x is { __kind: "Vec"; } & Omit<{ fields: [Creator[]]; }, "void"> & { __kind: 'Vec'; }; /** * @category userTypes * @category generated */ export declare const creatorProofBeet: beet.FixableBeet; //# sourceMappingURL=CreatorProof.d.ts.map