/** * 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 beet from '@metaplex-foundation/beet'; import { ShortVec, ShortString } from '@honeycomb-protocol/toolkit'; import { ResourceCustody } from './ResourceCustody'; /** * This type is used to derive the {@link ResourceKind} type as well as the de/serializer. * However don't refer to it in your code but use the {@link ResourceKind} type instead. * * @category userTypes * @category enums * @category generated * @private */ export type ResourceKindRecord = { Exported: void; HplFungible: { decimals: number; }; HplNonFungible: { characteristics: ShortVec; }; WrappedFungible: { decimals: number; custody: ResourceCustody; }; WrappedMplCore: { characteristics: ShortVec; }; }; /** * Union type respresenting the ResourceKind data enum defined in Rust. * * NOTE: that it includes a `__kind` property which allows to narrow types in * switch/if statements. * Additionally `isResourceKind*` type guards are exposed below to narrow to a specific variant. * * @category userTypes * @category enums * @category generated */ export type ResourceKind = beet.DataEnumKeyAsKind; export declare const isResourceKindExported: (x: ResourceKind) => x is { __kind: "Exported"; } & Omit & { __kind: 'Exported'; }; export declare const isResourceKindHplFungible: (x: ResourceKind) => x is { __kind: "HplFungible"; } & Omit<{ decimals: number; }, "void"> & { __kind: 'HplFungible'; }; export declare const isResourceKindHplNonFungible: (x: ResourceKind) => x is { __kind: "HplNonFungible"; } & Omit<{ characteristics: ShortVec; }, "void"> & { __kind: 'HplNonFungible'; }; export declare const isResourceKindWrappedFungible: (x: ResourceKind) => x is { __kind: "WrappedFungible"; } & Omit<{ decimals: number; custody: ResourceCustody; }, "void"> & { __kind: 'WrappedFungible'; }; export declare const isResourceKindWrappedMplCore: (x: ResourceKind) => x is { __kind: "WrappedMplCore"; } & Omit<{ characteristics: ShortVec; }, "void"> & { __kind: 'WrappedMplCore'; }; export declare const resourceKindBeet: beet.FixableBeet;