/** * 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 { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi'; import { Serializer } from '@metaplex-foundation/umi/serializers'; import { MetadataDelegateRoleSeedArgs } from '../../hooked'; import { Key, KeyArgs } from '../types'; export type MetadataDelegateRecord = Account; export type MetadataDelegateRecordAccountData = { key: Key; bump: number; mint: PublicKey; delegate: PublicKey; updateAuthority: PublicKey; }; export type MetadataDelegateRecordAccountDataArgs = { key: KeyArgs; bump: number; mint: PublicKey; delegate: PublicKey; updateAuthority: PublicKey; }; export declare function getMetadataDelegateRecordAccountDataSerializer(): Serializer; export declare function deserializeMetadataDelegateRecord(rawAccount: RpcAccount): MetadataDelegateRecord; export declare function fetchMetadataDelegateRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchMetadataDelegateRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllMetadataDelegateRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllMetadataDelegateRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getMetadataDelegateRecordGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; export declare function getMetadataDelegateRecordSize(): number; export declare function findMetadataDelegateRecordPda(context: Pick, seeds: { /** The address of the mint account */ mint: PublicKey; /** The role of the metadata delegate */ delegateRole: MetadataDelegateRoleSeedArgs; /** The address of the metadata's update authority */ updateAuthority: PublicKey; /** The address of the delegate authority */ delegate: PublicKey; }): Pda; export declare function fetchMetadataDelegateRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchMetadataDelegateRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;