export type PriceOfferConfidence = "high" | "medium" | "low";
export type PriceOfferSource = "page" | "snippet" | "estimate";

export interface PriceOffer {
  vendor: string;
  title: string;
  price: number | null;
  currency: "EUR";
  url: string;
  shippingNote?: string;
  confidence: PriceOfferConfidence;
  source: PriceOfferSource;
}

export interface PriceSearchRequest {
  descrizione: string;
  barcode?: string | null;
  codice?: string | null;
  quantita?: number;
}

export interface PriceSearchResponse {
  query: string;
  searchedAt: string;
  offers: PriceOffer[];
  disclaimer: string;
  source?: "tavily" | "llm";
}
