import type { ClusteringMetric, DataMatrix, LabelVector } from './types'; /** * A cluster with no assigned samples has index `-1` and distance `Infinity`. * Library-defined: scikit-learn exposes no equivalent attribute. */ export interface MedoidResult { indices: Int32Array; distances: Float32Array; } /** * O(n·d): each cluster mean is a single pass, no n×n pairwise matrix is materialised. * Noise samples (label `-1`) and labels outside `0..n_clusters-1` are ignored. * Ties break towards the lowest sample index. */ export declare function select_medoids(X: DataMatrix, labels: LabelVector, n_clusters: number, metric?: ClusteringMetric): Promise;