import { User, UserAPI } from "../../types/user.types.js";

//#region src/utils/mapper/user.d.ts
/**
 * Formats a user for API response. Removes sensitive information and adds role.
 * @param user - The user object to format.
 * @returns The formatted user object.
 */
declare const mapUserToAPI: <T extends User | UserAPI | null>(user?: T) => T extends null ? null : UserAPI;
/**
 * Formats an array of users for API response. Removes sensitive information and adds role.
 * @param users - The array of user objects to format.
 * @returns The formatted array of user objects.
 */
declare const mapUsersToAPI: (users: (User | UserAPI)[]) => UserAPI[];
//#endregion
export { mapUserToAPI, mapUsersToAPI };
//# sourceMappingURL=user.d.ts.map