import { formatClusterCount } from "./formatClusterCount"; export type ClusterCountFormatHelpers = Readonly<{ formatClusterCount: typeof formatClusterCount; }>; /** * Build-your-own hook: stable reference to the cluster count formatter. * * Returns `formatClusterCount` for consumers building custom cluster markers * that need consistent `"1.2k / 3.4m"` formatting without reimplementing * the truncation rules. * * @example * ```tsx * const { formatClusterCount } = useClusterCountFormat(); * // Inside your cluster render: * return