/** * 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 { HolderDelegateRoleSeedArgs } from '../../hooked'; import { Key, KeyArgs } from '../types'; export type HolderDelegateRecord = Account; export type HolderDelegateRecordAccountData = { key: Key; bump: number; mint: PublicKey; delegate: PublicKey; updateAuthority: PublicKey; }; export type HolderDelegateRecordAccountDataArgs = { key: KeyArgs; bump: number; mint: PublicKey; delegate: PublicKey; updateAuthority: PublicKey; }; export declare function getHolderDelegateRecordAccountDataSerializer(): Serializer; export declare function deserializeHolderDelegateRecord(rawAccount: RpcAccount): HolderDelegateRecord; export declare function fetchHolderDelegateRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchHolderDelegateRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllHolderDelegateRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllHolderDelegateRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getHolderDelegateRecordGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; export declare function getHolderDelegateRecordSize(): number; export declare function findHolderDelegateRecordPda(context: Pick, seeds: { /** The address of the mint account */ mint: PublicKey; /** The role of the holder delegate */ delegateRole: HolderDelegateRoleSeedArgs; /** The address of the owner of the token */ owner: PublicKey; /** The address of the delegate authority */ delegate: PublicKey; }): Pda; export declare function fetchHolderDelegateRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchHolderDelegateRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;