/** * 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 { AssetCriteria } from './AssetCriteria'; import { MplMetadataCreator } from './MplMetadataCreator'; import { MintAs } from './MintAs'; /** * This type is used to derive the {@link CharacterConfig} type as well as the de/serializer. * However don't refer to it in your code but use the {@link CharacterConfig} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type CharacterConfigRecord = { Wrapped: { fields: [AssetCriteria[]]; }; Assembled: { assemblerConfig: web3.PublicKey; name: string; symbol: string; description: string; creators: MplMetadataCreator[]; sellerFeeBasisPoints: number; collectionName: string; mintAs: MintAs; }; }; /** * Union type respresenting the CharacterConfig data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isCharacterConfig*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type CharacterConfig = beet.DataEnumKeyAsKind; export declare const isCharacterConfigWrapped: (x: CharacterConfig) => x is { __kind: "Wrapped"; } & Omit<{ fields: [AssetCriteria[]]; }, "void"> & { __kind: 'Wrapped'; }; export declare const isCharacterConfigAssembled: (x: CharacterConfig) => x is { __kind: "Assembled"; } & Omit<{ assemblerConfig: web3.PublicKey; name: string; symbol: string; description: string; creators: MplMetadataCreator[]; sellerFeeBasisPoints: number; collectionName: string; mintAs: MintAs; }, "void"> & { __kind: 'Assembled'; }; export declare const characterConfigBeet: beet.FixableBeet;