import { AccountType, DetailedAccount } from '../../../core'; /** * Builds the selection state for the accounts a widget actually renders. * * Derives from the account list rather than from `accountFilterMap`: the map is * seeded from `visibleAccounts` (which drops closed/hidden accounts) while the * list renders `detailedAccounts` (which keeps them). Starting from the map * therefore under-counted the checkboxes on screen, and the total *grew* as soon * as a bulk toggle wrote one of the missing guids into the map. Accounts with no * map entry default to unselected, so `total` always equals the number of * rendered checkboxes and stays stable across clicks. */ export declare const buildSelectionFilter: (accountFilterMap: Map, accounts: DetailedAccount[], allowedAccountTypes: AccountType[] | undefined) => Map; export declare const getSelectionCounts: (selectionFilter: Map) => { selected: number; total: number; };