UNPKG

@metamask/keyring-api

Version:
1 lines 1.39 kB
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/api/v2/export-account/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,oCAAoC,EACpC,+BAA+B,EAChC,0BAAsB;AAEvB,kCAA8B;AAE9B;;GAEG;AACH,MAAM,CAAN,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,+CAA0B,CAAA;AAC5B,CAAC,EALW,iBAAiB,KAAjB,iBAAiB,QAK5B;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,oCAAoC,CAAC;AAO/E;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,+BAA+B,CAAC","sourcesContent":["import { type Infer } from '@metamask/superstruct';\n\nimport {\n ExportAccountPrivateKeyOptionsStruct,\n PrivateKeyExportedAccountStruct,\n} from './private-key';\n\nexport * from './private-key';\n\n/**\n * Enum representing the different types of account export methods.\n */\nexport enum AccountExportType {\n /**\n * Export account as a private key.\n */\n PrivateKey = 'private-key',\n}\n\n/**\n * Struct for {@link ExportAccountOptions}.\n */\nexport const ExportAccountOptionsStruct = ExportAccountPrivateKeyOptionsStruct;\n\n/**\n * Represents the options for exporting an account.\n */\nexport type ExportAccountOptions = Infer<typeof ExportAccountOptionsStruct>;\n\n/**\n * Struct for {@link ExportedAccount}.\n */\nexport const ExportedAccountStruct = PrivateKeyExportedAccountStruct;\n\n/**\n * Represents an account that has been exported.\n */\nexport type ExportedAccount = Infer<typeof ExportedAccountStruct>;\n"]}