@metamask/keyring-api
Version:
MetaMask Keyring API
53 lines • 1.74 kB
text/typescript
import { type Infer } from "@metamask/superstruct";
/**
* Struct for {@link PrivateKeyExportedAccount}.
*/
export declare const PrivateKeyExportedAccountStruct: import("@metamask/superstruct").Struct<{
type: "private-key";
encoding: "hexadecimal" | "base58";
privateKey: string;
}, {
/**
* The type of the account export.
*/
type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
/**
* The private key of the exported account.
*/
privateKey: import("@metamask/superstruct").Struct<string, null>;
/**
* The encoding of the exported private key.
*/
encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
hexadecimal: "hexadecimal";
base58: "base58";
}>;
}>;
/**
* Represents an account that has been exported using a private key.
*/
export type PrivateKeyExportedAccount = Infer<typeof PrivateKeyExportedAccountStruct>;
/**
* Struct for {@link ExportAccountPrivateKeyOptions}.
*/
export declare const ExportAccountPrivateKeyOptionsStruct: import("@metamask/superstruct").Struct<{
type: "private-key";
encoding: "hexadecimal" | "base58";
}, {
/**
* The type of the account export.
*/
type: import("@metamask/superstruct").Struct<"private-key", "private-key">;
/**
* The encoding of the exported private key.
*/
encoding: import("@metamask/superstruct").Struct<"hexadecimal" | "base58", {
hexadecimal: "hexadecimal";
base58: "base58";
}>;
}>;
/**
* Options for exporting an account's private key.
*/
export type ExportAccountPrivateKeyOptions = Infer<typeof ExportAccountPrivateKeyOptionsStruct>;
//# sourceMappingURL=private-key.d.cts.map