import type { Properties, VectorMultiPolygon, VectorPoint, VectorPolygon } from '../geometry/index.js'; /** The metadata inserted into the Vector Feature */ export interface PolyLabelMetadata extends Properties { distance: number; } /** * # Polylabels * * ## Description * Find the labels for a collection of vector polygons * * ## Usage * ```ts * import { polylabels } from 'gis-tools-ts' * import type { VectorMultiPolygon } from 'gis-tools-ts' * * const vectorGeometry: VectorMultiPolygon = []; * const polylabelHighPrecision = polylabels(vectorGeometry, 1); * ``` * * ## Links * - https://sites.google.com/site/polesofinaccessibility/ * @param polygons - A collection of vector polygons to find the labels for * @param precision - the precision of the label [default: 1.0] * @returns - the labels */ export declare function polylabels(polygons: VectorMultiPolygon, precision?: number): VectorPoint[]; /** * # Polylabel * * ## Description * Find the label for a vector polygon * * ## Usage * ```ts * import { polylabel } from 'gis-tools-ts' * import type { VectorPolygon } from 'gis-tools-ts' * * const vectorGeometry: VectorPolygon = []; * const polylabelHighPrecision = polylabel(vectorGeometry, 1); * ``` * * ## Links * - https://sites.google.com/site/polesofinaccessibility/ * @param polygon - the vector polygon to find the label for * @param precision - the precision of the label [default: 1.0] * @returns - the label */ export declare function polylabel(polygon: VectorPolygon, precision?: number): VectorPoint; //# sourceMappingURL=polylabel.d.ts.map