/**
 * 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 { PickPartial } from '../shared';
import { AuthorizationData, AuthorizationDataArgs, RuleSetToggle, RuleSetToggleArgs } from '../types';
export type UpdateAsProgrammableConfigDelegateV2InstructionAccounts = {
    /** 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 UpdateAsProgrammableConfigDelegateV2InstructionData = {
    discriminator: number;
    updateAsProgrammableConfigDelegateV2Discriminator: number;
    ruleSet: RuleSetToggle;
    authorizationData: Option<AuthorizationData>;
};
export type UpdateAsProgrammableConfigDelegateV2InstructionDataArgs = {
    ruleSet?: RuleSetToggleArgs;
    authorizationData?: OptionOrNullable<AuthorizationDataArgs>;
};
export declare function getUpdateAsProgrammableConfigDelegateV2InstructionDataSerializer(): Serializer<UpdateAsProgrammableConfigDelegateV2InstructionDataArgs, UpdateAsProgrammableConfigDelegateV2InstructionData>;
export type UpdateAsProgrammableConfigDelegateV2InstructionExtraArgs = {
    delegateMint: PublicKey;
    delegateUpdateAuthority: PublicKey;
};
export type UpdateAsProgrammableConfigDelegateV2InstructionArgs = PickPartial<UpdateAsProgrammableConfigDelegateV2InstructionDataArgs & UpdateAsProgrammableConfigDelegateV2InstructionExtraArgs, 'delegateMint' | 'delegateUpdateAuthority'>;
export declare function updateAsProgrammableConfigDelegateV2(context: Pick<Context, 'eddsa' | 'identity' | 'payer' | 'programs'>, input: UpdateAsProgrammableConfigDelegateV2InstructionAccounts & UpdateAsProgrammableConfigDelegateV2InstructionArgs): TransactionBuilder;
