import { RoleChangeRequestDto, SettingsUpdateRequestDto, UsersListFilterDto } from '@n8n/api-types';
import { Logger } from '@n8n/backend-common';
import { ProjectRepository, SharedCredentialsRepository, SharedWorkflowRepository, UserRepository, AuthenticatedRequest } from '@n8n/db';
import { Response } from 'express';
import { AuthService } from '../auth/auth.service';
import { CredentialsService } from '../credentials/credentials.service';
import { EventService } from '../events/event.service';
import { ExternalHooks } from '../external-hooks';
import { ProvisioningService } from '../modules/provisioning.ee/provisioning.service.ee';
import { UserRequest } from '../requests';
import { FolderService } from '../services/folder.service';
import { ProjectService } from '../services/project.service.ee';
import { UserService } from '../services/user.service';
import { WorkflowService } from '../workflows/workflow.service';
import { JwtService } from '../services/jwt.service';
import { UrlService } from '../services/url.service';
export declare class UsersController {
    private readonly logger;
    private readonly externalHooks;
    private readonly sharedCredentialsRepository;
    private readonly sharedWorkflowRepository;
    private readonly userRepository;
    private readonly authService;
    private readonly userService;
    private readonly projectRepository;
    private readonly workflowService;
    private readonly credentialsService;
    private readonly eventService;
    private readonly folderService;
    private readonly jwtService;
    private readonly urlService;
    private readonly projectService;
    private readonly provisioningService;
    constructor(logger: Logger, externalHooks: ExternalHooks, sharedCredentialsRepository: SharedCredentialsRepository, sharedWorkflowRepository: SharedWorkflowRepository, userRepository: UserRepository, authService: AuthService, userService: UserService, projectRepository: ProjectRepository, workflowService: WorkflowService, credentialsService: CredentialsService, eventService: EventService, folderService: FolderService, jwtService: JwtService, urlService: UrlService, projectService: ProjectService, provisioningService: ProvisioningService);
    static ERROR_MESSAGES: {
        readonly CHANGE_ROLE: {
            readonly NO_USER: "Target user not found";
            readonly NO_ADMIN_ON_OWNER: "Admin cannot change role on global owner";
            readonly NO_OWNER_ON_OWNER: "Owner cannot change role on global owner";
        };
    };
    private removeSupplementaryFields;
    listUsers(req: AuthenticatedRequest, _res: Response, listQueryOptions: UsersListFilterDto): Promise<{
        count: number;
        items: {
            id: string;
            role?: import("@n8n/api-types").Role | undefined;
            email?: string | null | undefined;
            settings?: {
                userActivated?: boolean | undefined;
                allowSSOManualLogin?: boolean | undefined;
                easyAIWorkflowOnboarded?: boolean | undefined;
                dismissedCallouts?: Record<string, boolean> | undefined;
                isOnboarded?: boolean | undefined;
                firstSuccessfulWorkflowId?: string | undefined;
                userActivatedAt?: number | undefined;
                npsSurvey?: {
                    lastShownAt: number;
                    responded: true;
                } | {
                    lastShownAt: number;
                    waitingForResponse: true;
                    ignoredCount: number;
                } | undefined;
                userClaimedAiCredits?: boolean | undefined;
            } | null | undefined;
            firstName?: string | null | undefined;
            lastName?: string | null | undefined;
            mfaEnabled?: boolean | undefined;
            isOwner?: boolean | undefined;
            isPending?: boolean | undefined;
            projectRelations?: {
                role: string;
                id: string;
                name: string;
            }[] | null | undefined;
            signInType?: string | undefined;
            personalizationAnswers?: import("zod").objectOutputType<{}, import("zod").ZodTypeAny, "passthrough"> | null | undefined;
            lastActiveAt?: string | null | undefined;
            inviteAcceptUrl?: string | undefined;
            isManagedByEnv?: boolean | undefined;
        }[];
    }>;
    getUserPasswordResetLink(req: UserRequest.PasswordResetLink): Promise<{
        link: string;
    }>;
    generateInviteLink(req: AuthenticatedRequest<{
        id: string;
    }, {}, {}, {}>, _res: Response): Promise<{
        link: string;
    }>;
    updateUserSettings(_req: AuthenticatedRequest, _res: Response, payload: SettingsUpdateRequestDto, id: string): Promise<import("n8n-workflow").IUserSettings | null>;
    deleteUser(req: UserRequest.Delete): Promise<{
        success: boolean;
    }>;
    changeGlobalRole(req: AuthenticatedRequest, _: Response, payload: RoleChangeRequestDto, id: string): Promise<{
        success: boolean;
    }>;
}
