import { Pollutant } from '@shootismoke/convert'; import { LatLng } from '../../types'; import { OpenAQMeasurements } from './types'; /** * @see https://docs.openaq.org/#api-Latest */ export interface OpenAQOptions { /** * Show results after a certain date. This acts on the utc timestamp of each * measurement. */ dateFrom?: Date; /** * Show results before a certain date. This acts on the utc timestamp of each measurement. */ dateTo?: Date; /** * Include extra fields in the output in addition to default values. */ includeFields?: string[]; /** * Change the number of results returned, max is 10000. * @default 10 */ limit?: number; /** * Limit to certain one or more parameters. */ parameter?: Pollutant[]; } /** * Fetch the closest station to the user's current position * * @param gps - Latitude and longitude of the user's current position */ export declare function fetchByGps(gps: LatLng, options?: OpenAQOptions): Promise; /** * Fetch data by station * * @param stationId - The station ID to search */ export declare function fetchByStation(stationId: string, options?: OpenAQOptions): Promise;