UNPKG

@metamask/multichain-account-service

Version:
16 lines 860 B
import { Messenger } from "@metamask/base-controller"; import type { AllowedActions, AllowedEvents, MultichainAccountServiceActions, MultichainAccountServiceMessenger } from "../types.mjs"; /** * Creates a new root messenger instance for testing. * * @returns A new Messenger instance. */ export declare function getRootMessenger(): Messenger<MultichainAccountServiceActions | AllowedActions, AllowedEvents>; /** * Retrieves a restricted messenger for the MultichainAccountService. * * @param messenger - The root messenger instance. Defaults to a new Messenger created by getRootMessenger(). * @returns The restricted messenger for the MultichainAccountService. */ export declare function getMultichainAccountServiceMessenger(messenger: ReturnType<typeof getRootMessenger>): MultichainAccountServiceMessenger; //# sourceMappingURL=messenger.d.mts.map