UNPKG

observation-js

Version:

A fully-typed TypeScript client for the waarneming.nl API.

23 lines (22 loc) 740 B
import type { ObservationClient } from '../core/client'; import type { RegionSpeciesList, SpeciesData } from '../types'; export declare class RegionSpeciesLists { #private; /** * @internal */ constructor(client: ObservationClient); /** * Fetches a list of all available species lists for regions. * * @returns A promise that resolves to a paginated list of region species lists. */ list(): Promise<RegionSpeciesList[]>; /** * Fetches the species for a specific region species list. * * @param id - The ID of the region species list. * @returns A promise that resolves to an array of species in the list. */ getSpecies(id: number): Promise<SpeciesData[]>; }