/**
 * 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 { Context, Option, OptionOrNullable, Pda, PublicKey, Signer, TransactionBuilder } from '@metaplex-foundation/umi';
import { Serializer } from '@metaplex-foundation/umi/serializers';
import { AuthorizationData, AuthorizationDataArgs, CollectionDetailsToggle, CollectionDetailsToggleArgs, CollectionToggle, CollectionToggleArgs, Data, DataArgs, RuleSetToggle, RuleSetToggleArgs, TokenStandard, TokenStandardArgs, UsesToggle, UsesToggleArgs } from '../types';
export type UpdateAsUpdateAuthorityV2InstructionAccounts = {
    /** Update authority or delegate */
    authority?: Signer;
    /** Delegate record PDA */
    delegateRecord?: PublicKey | Pda;
    /** Token account */
    token?: PublicKey | Pda;
    /** Mint account */
    mint: PublicKey | Pda;
    /** Metadata account */
    metadata?: PublicKey | Pda;
    /** Edition account */
    edition?: PublicKey | Pda;
    /** Payer */
    payer?: Signer;
    /** System program */
    systemProgram?: PublicKey | Pda;
    /** Instructions sysvar account */
    sysvarInstructions?: PublicKey | Pda;
    /** Token Authorization Rules Program */
    authorizationRulesProgram?: PublicKey | Pda;
    /** Token Authorization Rules account */
    authorizationRules?: PublicKey | Pda;
};
export type UpdateAsUpdateAuthorityV2InstructionData = {
    discriminator: number;
    updateAsUpdateAuthorityV2Discriminator: number;
    newUpdateAuthority: Option<PublicKey>;
    data: Option<Data>;
    primarySaleHappened: Option<boolean>;
    isMutable: Option<boolean>;
    collection: CollectionToggle;
    collectionDetails: CollectionDetailsToggle;
    uses: UsesToggle;
    ruleSet: RuleSetToggle;
    tokenStandard: Option<TokenStandard>;
    authorizationData: Option<AuthorizationData>;
};
export type UpdateAsUpdateAuthorityV2InstructionDataArgs = {
    newUpdateAuthority?: OptionOrNullable<PublicKey>;
    data?: OptionOrNullable<DataArgs>;
    primarySaleHappened?: OptionOrNullable<boolean>;
    isMutable?: OptionOrNullable<boolean>;
    collection?: CollectionToggleArgs;
    collectionDetails?: CollectionDetailsToggleArgs;
    uses?: UsesToggleArgs;
    ruleSet?: RuleSetToggleArgs;
    tokenStandard?: OptionOrNullable<TokenStandardArgs>;
    authorizationData?: OptionOrNullable<AuthorizationDataArgs>;
};
export declare function getUpdateAsUpdateAuthorityV2InstructionDataSerializer(): Serializer<UpdateAsUpdateAuthorityV2InstructionDataArgs, UpdateAsUpdateAuthorityV2InstructionData>;
export type UpdateAsUpdateAuthorityV2InstructionArgs = UpdateAsUpdateAuthorityV2InstructionDataArgs;
export declare function updateAsUpdateAuthorityV2(context: Pick<Context, 'eddsa' | 'identity' | 'payer' | 'programs'>, input: UpdateAsUpdateAuthorityV2InstructionAccounts & UpdateAsUpdateAuthorityV2InstructionArgs): TransactionBuilder;
