import { api } from './client'
import type { Pokemon } from '../types/game'

export function getPokemon(id: number): Promise<Pokemon> {
  return api.get(`/pokemon/${id}`)
}

export function fetchPokemonFamilies(): Promise<{ families: number[][] }> {
  return api.get('/pokemon/families')
}
