{"version":3,"file":"providers.cjs","sourceRoot":"","sources":["../../../src/api/multichain/providers.ts"],"names":[],"mappings":"","sourcesContent":["import type { EntropySourceId, KeyringAccount } from '@metamask/keyring-api';\nimport type { AccountId } from '@metamask/keyring-utils';\n\nexport type AccountProvider<Account extends KeyringAccount> = {\n  getAccount: (id: AccountId) => Account; // Assuming getting an account from the provider can never fail.\n\n  getAccounts: (opts: {\n    entropySource: EntropySourceId;\n    groupIndex: number;\n  }) => AccountId[];\n\n  createAccounts: (opts: {\n    entropySource: EntropySourceId;\n    groupIndex: number;\n  }) => Promise<AccountId[]>;\n\n  discoverAndCreateAccounts: (opts: {\n    entropySource: EntropySourceId;\n    groupIndex: number;\n  }) => Promise<AccountId[]>;\n};\n"]}