import { AccountId } from '@plugnet/types/interfaces'; import { ApiInterfaceRx } from '@plugnet/api/types'; import { Observable } from 'rxjs'; /** * @name approvalsOf * @returns A nested array of boolean approvals for the given account in each voter set index, converted from its ApprovalFlag(s). * @example *
* * ```javascript * api.derive.elections.approvalsOf(ALICE, (approvals) => { * // approvals === [[false], [true, false], ...] * }); * ``` */ export declare function approvalsOf(api: ApiInterfaceRx): (who: AccountId) => Observable;