import { Keypair } from '@solana/web3.js';
/**
 * Converts a legacy [Keypair](https://solana-foundation.github.io/solana-web3.js/classes/Keypair.html)
 * object to a native Ed25519 {@link CryptoKeyPair} object.
 *
 * @example
 * ```ts
 * import { fromLegacyKeypair } from '@solana/compat';
 *
 * const legacyKeyPair = Keypair.generate();
 * const { privateKey, publicKey } = await fromLegacyKeypair(legacyKeyPair);
 * ```
 */
export declare function fromLegacyKeypair(keypair: Keypair, extractable?: boolean): Promise<CryptoKeyPair>;
//# sourceMappingURL=keypair.d.ts.map