UNPKG

@metamask/keyring-api

Version:
45 lines 1.83 kB
import { type Infer } from "@metamask/superstruct"; /** * Struct for {@link CreateAccountPrivateKeyOptions}. */ export declare const CreateAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{ type: "private-key:import"; encoding: "hexadecimal" | "base58"; privateKey: string; accountType?: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; }, { /** * The type of the options. */ type: import("@metamask/superstruct").Struct<"private-key:import", "private-key:import">; /** * The encoded private key to be imported. */ privateKey: import("@metamask/superstruct").Struct<string, null>; /** * The encoding of the private key. */ encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", { hexadecimal: "hexadecimal"; base58: "base58"; }>; /** * The account type of the imported account. */ accountType: import("@metamask/superstruct").ExactOptionalStruct<"eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account", { "eip155:eoa": "eip155:eoa"; "eip155:erc4337": "eip155:erc4337"; "bip122:p2pkh": "bip122:p2pkh"; "bip122:p2sh": "bip122:p2sh"; "bip122:p2wpkh": "bip122:p2wpkh"; "bip122:p2tr": "bip122:p2tr"; "solana:data-account": "solana:data-account"; "tron:eoa": "tron:eoa"; "any:account": "any:account"; }>; }>; /** * Options for importing an account from a private key. */ export type CreateAccountPrivateKeyOptions = Infer<typeof CreateAccountPrivateKeyOptionsStruct>; //# sourceMappingURL=private-key.d.cts.map