import * as tf from '../backend/adapter'; import { SparseMatrix } from './sparse'; export declare function detect_connected_components(affinity: tf.Tensor2D, tolerance?: number): { num_components: number; is_fully_connected: boolean; component_labels: Int32Array; }; /** @throws If the affinity matrix is not square. */ export declare function detect_sparse_connected_components(affinity: SparseMatrix, tolerance?: number): { num_components: number; is_fully_connected: boolean; component_labels: Int32Array; };