import { IInstruction } from '@solana/instructions';
import { TransactionInstruction } from '@solana/web3.js';
/**
 * This can be used to convert a legacy [`TransactionInstruction`](https://solana-foundation.github.io/solana-web3.js/classes/TransactionInstruction.html)
 * object to an {@link IInstruction}.
 *
 * @example
 * ```ts
 * import { fromLegacyTransactionInstruction } from '@solana/compat';
 *
 * // Imagine a function that returns a legacy `TransactionInstruction`
 * const legacyInstruction = getMyLegacyInstruction();
 * const instruction = fromLegacyTransactionInstruction(legacyInstruction);
 * ```
 */
export declare function fromLegacyTransactionInstruction(legacyInstruction: TransactionInstruction): IInstruction;
//# sourceMappingURL=instruction.d.ts.map