UNPKG

@metamask/keyring-api

Version:
48 lines 1.57 kB
import { type Infer } from "@metamask/superstruct"; export * from "./private-key.mjs"; /** * Enum representing the different types of account export methods. */ export declare enum AccountExportType { /** * Export account as a private key. */ PrivateKey = "private-key" } /** * Struct for {@link ExportAccountOptions}. */ export declare const ExportAccountOptionsStruct: import("@metamask/superstruct").Struct<{ type: "private-key"; encoding: "hexadecimal" | "base58"; }, { type: import("@metamask/superstruct").Struct<"private-key", "private-key">; encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", { hexadecimal: "hexadecimal"; base58: "base58"; }>; }>; /** * Represents the options for exporting an account. */ export type ExportAccountOptions = Infer<typeof ExportAccountOptionsStruct>; /** * Struct for {@link ExportedAccount}. */ export declare const ExportedAccountStruct: import("@metamask/superstruct").Struct<{ type: "private-key"; encoding: "hexadecimal" | "base58"; privateKey: string; }, { type: import("@metamask/superstruct").Struct<"private-key", "private-key">; privateKey: import("@metamask/superstruct").Struct<string, null>; encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", { hexadecimal: "hexadecimal"; base58: "base58"; }>; }>; /** * Represents an account that has been exported. */ export type ExportedAccount = Infer<typeof ExportedAccountStruct>; //# sourceMappingURL=index.d.mts.map