/** * 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 { Key, KeyArgs } from '../types'; export type UseAuthorityRecord = Account; export type UseAuthorityRecordAccountData = { key: Key; allowedUses: bigint; bump: number; }; export type UseAuthorityRecordAccountDataArgs = { allowedUses: number | bigint; bump: number; }; export declare function getUseAuthorityRecordAccountDataSerializer(): Serializer; export declare function deserializeUseAuthorityRecord(rawAccount: RpcAccount): UseAuthorityRecord; export declare function fetchUseAuthorityRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function safeFetchUseAuthorityRecord(context: Pick, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise; export declare function fetchAllUseAuthorityRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function safeFetchAllUseAuthorityRecord(context: Pick, publicKeys: Array, options?: RpcGetAccountsOptions): Promise; export declare function getUseAuthorityRecordGpaBuilder(context: Pick): import("@metaplex-foundation/umi").GpaBuilder; export declare function getUseAuthorityRecordSize(): number; export declare function findUseAuthorityRecordPda(context: Pick, seeds: { /** The address of the mint account */ mint: PublicKey; /** The address of the use authority */ useAuthority: PublicKey; }): Pda; export declare function fetchUseAuthorityRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise; export declare function safeFetchUseAuthorityRecordFromSeeds(context: Pick, seeds: Parameters[1], options?: RpcGetAccountOptions): Promise;