/** * This code was AUTOGENERATED using the kinobi library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * * @see https://github.com/metaplex-foundation/kinobi */ import { PublicKey } from '@metaplex-foundation/umi'; import { GetDataEnumKind, GetDataEnumKindContent, Serializer } from '@metaplex-foundation/umi/serializers'; export declare type LeafSchema = { __kind: 'V1'; id: PublicKey; owner: PublicKey; delegate: PublicKey; nonce: bigint; dataHash: Uint8Array; creatorHash: Uint8Array; } | { __kind: 'V2'; id: PublicKey; owner: PublicKey; delegate: PublicKey; nonce: bigint; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: Uint8Array; assetDataHash: Uint8Array; flags: number; }; export declare type LeafSchemaArgs = { __kind: 'V1'; id: PublicKey; owner: PublicKey; delegate: PublicKey; nonce: number | bigint; dataHash: Uint8Array; creatorHash: Uint8Array; } | { __kind: 'V2'; id: PublicKey; owner: PublicKey; delegate: PublicKey; nonce: number | bigint; dataHash: Uint8Array; creatorHash: Uint8Array; collectionHash: Uint8Array; assetDataHash: Uint8Array; flags: number; }; export declare function getLeafSchemaSerializer(): Serializer; export declare function leafSchema(kind: 'V1', data: GetDataEnumKindContent): GetDataEnumKind; export declare function leafSchema(kind: 'V2', data: GetDataEnumKindContent): GetDataEnumKind; export declare function isLeafSchema(kind: K, value: LeafSchema): value is LeafSchema & { __kind: K; };