export interface BlogPost {
  id: number;
  title: string;
  body: string;
  userId: number;
  slug?: string;
  excerpt?: string;
  createdAt?: string;
  updatedAt?: string;
  publishedAt?: string;
  modifiedAt?: string;
  author?: string;
  imageUrl?: string; // Keep for backward compatibility
  imageUrls?: string[]; // New field for multiple images
  files?: any[]; // Raw files array from API
  htmlContent?: string; // HTML content for rendering
  description?: string; // Full description/content from API
  descriptionMeta?: string; // Meta description for SEO
  keywords?: string; // SEO keywords
  creator?: {
    firstName?: string;
    lastName?: string;
    createdAt?: string;
    updatedAt?: string;
  };
}

export interface BlogState {
  posts: BlogPost[];
  currentPost: BlogPost | null;
  loading: boolean;
  error: string | null;
}