import type { CachedAccount, InternalState } from "../types.ts"; export function internalStateDecorator(): InternalState { let account: CachedAccount | undefined = undefined; return { setAccount: (newAccount: CachedAccount) => { account = newAccount; }, getAccount: () => account, }; }