import { type Client, type GetLogsErrorType, type GetLogsParameters } from 'viem'; import type { Address } from 'viem/accounts'; import { registryRoles } from '../../../../utils/v2/index.js'; export type GetNameRolesAccountsParameters = { registryAddress: Address; label: string; } & Pick; /** * The decoded roles come from `registryRoles`, whose keys already include the * `_ADMIN` variants — the same type `getNameRolesForAccount` returns. The * previous `RoleName` instantiated the generic with its own * constraint, which widens to `string` and left callers casting. */ export type GetNameRolesAccountsReturnType = Map>; export type GetNameRolesAccountsErrorType = GetLogsErrorType; /** * Get registry role accounts for a name * @param client - {@link Client} * @param parameters - {@link GetNameRolesAccountsParameters} * @returns Filtered logs {@link GetNameRolesAccountsReturnType} * */ export declare function getNameRoleAccounts(client: Client, { registryAddress, label, ...params }: GetNameRolesAccountsParameters): Promise; //# sourceMappingURL=getNameRolesAccounts.d.ts.map