import type { Card } from "./types";

// Placeholder cards array
let cards: Card[] = [
    { id: "swsh1-1", name: "Celebi V", set: "Swsh1", number: "1", imageUrl: "https://assets.tcgdex.net/de/swsh/swsh1/1/high.png" },
    { id: "swsh12-001", name: "Bluzuk", set: "Swsh12", number: "001", imageUrl: "https://assets.tcgdex.net/de/swsh/swsh12/001/high.png" },
];

export function loadCards() {
    // Placeholder: you can later load embeddings.npy + FAISS
    console.log("Cards module loaded (currently empty)");
}

export function queryCardById(id: string): Card | null {
    return cards.find(c => c.id === id) || null;
}

// Example placeholder: return top N matches
export function queryCardByEmbedding(/* embedding */): Card[] {
    return cards.slice(0, 5); // dummy top 5
}
