import type { AuthPrincipal } from '@n8n/permissions'; import type { IUser, IUserSettings } from 'n8n-workflow'; import { WithTimestamps } from './abstract-entity'; import type { ApiKey } from './api-key'; import type { AuthIdentity } from './auth-identity'; import type { ProjectRelation } from './project-relation'; import { Role } from './role'; import type { SharedCredentials } from './shared-credentials'; import type { SharedWorkflow } from './shared-workflow'; import type { IPersonalizationSurveyAnswers } from './types-db'; export declare class User extends WithTimestamps implements IUser, AuthPrincipal { id: string; email: string; firstName: string; lastName: string; password: string | null; personalizationAnswers: IPersonalizationSurveyAnswers | null; settings: IUserSettings | null; role: Role; authIdentities: AuthIdentity[]; apiKeys: ApiKey[]; sharedWorkflows: SharedWorkflow[]; sharedCredentials: SharedCredentials[]; projectRelations: ProjectRelation[]; disabled: boolean; preUpsertHook(): void; mfaEnabled: boolean; mfaSecret?: string | null; mfaRecoveryCodes: string[]; lastActiveAt?: Date | null; isPending: boolean; computeIsPending(): void; toJSON(): Omit; createPersonalProjectName(): string; toIUser(): IUser; }