import { HomeOptions } from '@haechi-labs/face-types'; import { Internal } from './Internal'; /** * The interface to control view of facewallet. * * @category API */ export class Wallet { private readonly internal: Internal; constructor(internal: Internal) { this.internal = internal; } /** * Open wallet home * * @method * @returns {Promise} */ async home(options?: HomeOptions) { if (options?.networks?.length === 0) { throw new Error("The 'networks' should select at least one network."); } return this.internal.openHome(options); } }