/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { AdminUserRow } from './repository.js'; import type { AdminUserResponse } from './schemas.js'; /** * Shape an `AdminUserRow` into its public `AdminUserResponse` form. * * The row type from the repository already omits `password_hash`, so * this is effectively an identity map — the indirection exists so that * if internal fields ever get added to the row (e.g. tenant id, * soft-delete timestamp), they are explicitly opted out of the public * shape here rather than leaking by default. */ export declare function toAdminUser(row: AdminUserRow): AdminUserResponse;