import type { BBox, BasicFilters, OsmNote } from "../../types"; import { type FetchOptions } from "../_osmFetch"; export interface ListNotesOptions extends BasicFilters { /** The search query */ q: string; /** Limits notes to the given bounding box */ bbox?: BBox | string; /** * The number of days a note needs to be closed to no longer be returned. * @default 7 */ closed?: number; /** The value which should be used to sort the notes */ sort?: "created_at" | "updated_at"; /** The order of the returned notes */ order?: "oldest" | "newest"; } /** * Returns a list of notes matching either the initial note text, or any of the * comments. The notes will be ordered by the date of their last change, with * the most recent one first. * * If no query is specified, the latest notes are returned. */ export declare function getNotesForQuery(query: ListNotesOptions, options?: FetchOptions): Promise; /** * Returns a list of notes within the specified bounding box. The notes * will be ordered by the date of their last change, with the most recent * one first. */ export declare function getNotesForArea(bbox: BBox | string, options?: FetchOptions): Promise; export declare function getNote(noteId: number, options?: FetchOptions): Promise;