import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
import { User } from "../../auth/auth-validation-schemas.js";

//#region src/data-access/runtime/users.d.ts

/**
 * User data access layer
 * All database queries for Better Auth's user table
 */
/**
 * Get user by ID
 */
declare const getUserById: (db: AgentsRunDatabaseClient) => (userId: string) => Promise<User | null>;
/**
 * Get user by email
 */
declare const getUserByEmail: (db: AgentsRunDatabaseClient) => (email: string) => Promise<User | null>;
/**
 * Get organization member by email
 * Returns the user if they are a member of the specified organization
 */
declare const getOrganizationMemberByUserId: (db: AgentsRunDatabaseClient) => (organizationId: string, userId: string) => Promise<(User & {
  role: string;
  memberId: string;
}) | null>;
declare const getOrganizationMemberByEmail: (db: AgentsRunDatabaseClient) => (organizationId: string, email: string) => Promise<(User & {
  role: string;
  memberId: string;
}) | null>;
//#endregion
export { getOrganizationMemberByEmail, getOrganizationMemberByUserId, getUserByEmail, getUserById };