import type { KeyringAccount } from "@metamask/keyring-api"; import type { CreateAccountOptions, ExportAccountOptions, ExportedAccount, Keyring } from "@metamask/keyring-api/v2"; import { EthKeyringWrapper } from "@metamask/keyring-sdk/v2"; import type { AccountId } from "@metamask/keyring-utils"; import type LegacySimpleKeyring from "../simple-keyring.mjs"; /** * Concrete {@link Keyring} adapter for {@link SimpleKeyring}. * * This wrapper exposes the accounts and signing capabilities of the legacy * SimpleKeyring via the unified V2 interface. */ export type SimpleKeyringOptions = { legacyKeyring: LegacySimpleKeyring; }; export declare class SimpleKeyring extends EthKeyringWrapper implements Keyring { #private; constructor(options: SimpleKeyringOptions); getAccounts(): Promise; createAccounts(options: CreateAccountOptions): Promise; /** * Delete an account from the keyring. * * @param accountId - The account ID to delete. */ deleteAccount(accountId: AccountId): Promise; /** * Export the private key for an account in hexadecimal format. * * @param accountId - The ID of the account to export. * @param options - Export options (only hexadecimal encoding is supported). * @returns The exported account with private key. */ exportAccount(accountId: AccountId, options?: ExportAccountOptions): Promise; } //# sourceMappingURL=simple-keyring.d.mts.map