import { PaginationOptions } from "../../../database/pagination/pagination-options";
import { GroupService } from './group.service';
import { KyselyDB, KyselyTransaction } from "../../../database/types/kysely.types";
import { GroupUserRepo } from "../../../database/repos/group/group-user.repo";
import { SpaceMemberRepo } from "../../../database/repos/space/space-member.repo";
import { UserRepo } from "../../../database/repos/user/user.repo";
import { WatcherRepo } from "../../../database/repos/watcher/watcher.repo";
import { FavoriteRepo } from "../../../database/repos/favorite/favorite.repo";
import { IAuditService } from '../../../integrations/audit/audit.service';
import { WsService } from '../../../ws/ws.service';
import { PagePermissionRepo } from "../../../database/repos/page/page-permission.repo";
import { CollabAccessService } from '../../../collaboration/services/collab-access.service';
export type GroupAccess = {
    spaceIds: string[];
    pageIds: string[];
};
export declare class GroupUserService {
    private groupUserRepo;
    private spaceMemberRepo;
    private userRepo;
    private groupService;
    private readonly watcherRepo;
    private readonly favoriteRepo;
    private readonly db;
    private readonly auditService;
    private readonly wsService;
    private readonly pagePermissionRepo;
    private readonly collabAccessService;
    constructor(groupUserRepo: GroupUserRepo, spaceMemberRepo: SpaceMemberRepo, userRepo: UserRepo, groupService: GroupService, watcherRepo: WatcherRepo, favoriteRepo: FavoriteRepo, db: KyselyDB, auditService: IAuditService, wsService: WsService, pagePermissionRepo: PagePermissionRepo, collabAccessService: CollabAccessService);
    getGroupUsers(groupId: string, workspaceId: string, pagination: PaginationOptions, opts?: {
        adminView?: boolean;
    }): Promise<import("../../../database/pagination/cursor-pagination").CursorPaginationResult<{
        password: string;
        id: string;
        workspaceId: string;
        createdAt: Date;
        updatedAt: Date;
        deletedAt: Date;
        role: string;
        name: string;
        settings: import("../../../database/types/db").JsonValue;
        email: string;
        invitedById: string;
        avatarUrl: string;
        deactivatedAt: Date;
        emailVerifiedAt: Date;
        lastActiveAt: Date;
        lastLoginAt: Date;
        locale: string;
        hasGeneratedPassword: boolean;
        scimExternalId: string;
        timezone: string;
    } & Partial<Omit<unknown, "password" | "id" | "workspaceId" | "createdAt" | "updatedAt" | "deletedAt" | "role" | "name" | "settings" | "email" | "invitedById" | "avatarUrl" | "deactivatedAt" | "emailVerifiedAt" | "lastActiveAt" | "lastLoginAt" | "locale" | "hasGeneratedPassword" | "scimExternalId" | "timezone">>, undefined>>;
    addUsersToGroupBatch(userIds: string[], groupId: string, workspaceId: string, trx?: KyselyTransaction): Promise<void>;
    removeUserFromGroup(userId: string, groupId: string, workspaceId: string): Promise<void>;
    getGroupAccess(groupIds: string[], opts?: {
        trx?: KyselyTransaction;
    }): Promise<GroupAccess>;
    removeWatchersAndFavoritesWithoutAccess(userIds: string[], spaceIds: string[], trx: KyselyTransaction): Promise<void>;
    revokeRealtimeAccess(userIds: string[], groupAccess: GroupAccess): Promise<void>;
}
