import type Bookshelf from '@metabrainz/bookshelf'; import type { ORM } from '..'; /** * Recursively fetches an area's parents (with "has part" link) * Adapted from https://github.com/metabrainz/musicbrainz-server/blob/f79b6d0d2d4bd67254cc34426f17cf8eb21ec5bb/lib/MusicBrainz/Server/Data/Utils.pm#L255-L273 * @param {object} orm - the BookBrainz ORM, initialized during app setup, or a Bookshelf instance * @param {string} areaId - The BBID (= MBID) of the area * @param {boolean} checkAllLevels - By default limits to the area types Country, Subdivision and City * @returns {Promise} The returned Promise returns the entity's * parent default alias */ export declare function recursivelyGetAreaParentsWithNames(orm: ORM | Bookshelf, areaId: string, checkAllLevels?: boolean): Promise; type AreaDescendantRow = { descendant: string; parent: string; depth: number; name: string; }; export {};