import { BaseEntity, EntityManager } from 'typeorm';
import { NestAuthTenant } from '../../tenant/entities/tenant.entity';
import { NestAuthUser } from './user.entity';
import { NestAuthRole } from '../../role/entities/role.entity';
export declare class NestAuthUserAccess extends BaseEntity {
    id: string;
    userId: string;
    tenantId: string;
    user: NestAuthUser;
    tenant: NestAuthTenant;
    roles: NestAuthRole[];
    isActive: boolean;
    isDefault: boolean;
    status: string;
    metadata?: Record<string, any>;
    createdAt: Date;
    updatedAt: Date;
    getPermissions(tenantId: string | null): Promise<string[]>;
    getRoles(tenantId?: string | null, withPermissions?: boolean): Promise<NestAuthRole[]>;
    assignRoles(roleIds: string | string[], manager?: EntityManager): Promise<void>;
}
//# sourceMappingURL=user-access.entity.d.ts.map