export interface UserPermissions {
  categories: {
    [key: string]: { edit: boolean; create: boolean; delete: boolean };
  };
  cities: number[];
  isAdmin: boolean;
}

export type PermissionAction = 'edit' | 'create' | 'delete';

export interface User {
  id: string;
  email: string;
  displayName: string;
  avatarUrl: string;
  bio: string;
  permissions: UserPermissions;
}

export interface Author {
  id: string;
  email: string | null;
  displayName: string;
  avatarUrl: string;
  bio: string | null;
  order: number;
  okUrl: string | null;
  vkUrl: string | null;
  websiteUrl: string | null;
  articlesCount: number;
  userId?: string | null;
}