/** * Role Helper Functions * Utilities for working with user roles and their translations */ import { type UserRole } from '../types/user.types'; import type { TranslationFunction } from '../messages/types'; /** * Hook para obtener nombres de roles traducidos * @returns Función para obtener el nombre traducido de un rol * * @example * const getRoleName = useRoleTranslations(); * const roleName = getRoleName('admin'); // "Administrador" en español */ export declare function useRoleTranslations(): (role: UserRole) => string; /** * Obtener todas las opciones de roles para formularios * @returns Array de objetos con value y label traducido * * @example * const roleOptions = useRoleOptions(); * // [{ value: 'member', label: 'Miembro' }, ...] */ export declare function useRoleOptions(): { value: any; label: string; }[]; /** * Función para usar en server components (sin hooks) * @param role - El rol del usuario * @param t - Función de traducción de next-intl * @returns Nombre del rol traducido * * @example * import { getTranslations } from 'next-intl/server'; * * const t = await getTranslations(); * const roleName = getRoleDisplayName('admin', t); */ export declare function getRoleDisplayName(role: UserRole, t: TranslationFunction): string; //# sourceMappingURL=role-helpers.d.ts.map