import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit";
import { SVM_SPOKE_PROGRAM_ADDRESS } from "../programs";
export declare const TRANSFER_OWNERSHIP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getTransferOwnershipDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type TransferOwnershipInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountState extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
    TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
    TAccountState extends string ? WritableAccount<TAccountState> : TAccountState,
    TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
    TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
    ...TRemainingAccounts
]>;
export type TransferOwnershipInstructionData = {
    discriminator: ReadonlyUint8Array;
    newOwner: Address;
};
export type TransferOwnershipInstructionDataArgs = {
    newOwner: Address;
};
export declare function getTransferOwnershipInstructionDataEncoder(): FixedSizeEncoder<TransferOwnershipInstructionDataArgs>;
export declare function getTransferOwnershipInstructionDataDecoder(): FixedSizeDecoder<TransferOwnershipInstructionData>;
export declare function getTransferOwnershipInstructionDataCodec(): FixedSizeCodec<TransferOwnershipInstructionDataArgs, TransferOwnershipInstructionData>;
export type TransferOwnershipAsyncInput<TAccountSigner extends string = string, TAccountState extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    state: Address<TAccountState>;
    eventAuthority?: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    newOwner: TransferOwnershipInstructionDataArgs["newOwner"];
};
export declare function getTransferOwnershipInstructionAsync<TAccountSigner extends string, TAccountState extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: TransferOwnershipAsyncInput<TAccountSigner, TAccountState, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): Promise<TransferOwnershipInstruction<TProgramAddress, TAccountSigner, TAccountState, TAccountEventAuthority, TAccountProgram>>;
export type TransferOwnershipInput<TAccountSigner extends string = string, TAccountState extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    state: Address<TAccountState>;
    eventAuthority: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    newOwner: TransferOwnershipInstructionDataArgs["newOwner"];
};
export declare function getTransferOwnershipInstruction<TAccountSigner extends string, TAccountState extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: TransferOwnershipInput<TAccountSigner, TAccountState, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): TransferOwnershipInstruction<TProgramAddress, TAccountSigner, TAccountState, TAccountEventAuthority, TAccountProgram>;
export type ParsedTransferOwnershipInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        signer: TAccountMetas[0];
        state: TAccountMetas[1];
        eventAuthority: TAccountMetas[2];
        program: TAccountMetas[3];
    };
    data: TransferOwnershipInstructionData;
};
export declare function parseTransferOwnershipInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedTransferOwnershipInstruction<TProgram, TAccountMetas>;
