import { ModuleState } from './campaign.js';

export interface SeriePost {
  id: string;
  postIdx: number;
  titulo: string;
  corpo: string;
  cta: string;
  slides: string[] | null;
}

export interface Serie {
  id: string;
  profileId: string | null;
  productId: string;
  serie_titulo: string;
  serie_descricao: string;
  count: number;
  format: 'carrossel' | 'estatico';
  posts: SeriePost[];
  createdAt: string;
}

export function generateSerie(
  state: ModuleState,
  productId: string,
  count?: number,
  format?: 'carrossel' | 'estatico'
): Promise<Serie>;

export function getSerieSystemPrompt(
  product: { name: string; [key: string]: unknown },
  count: number,
  format: string,
  identity: Record<string, unknown>
): string;

export function getSerieUserPrompt(
  product: { name: string; [key: string]: unknown },
  count: number,
  format: string
): string;
