import { type Context } from 'react'; import { type ConvertibleUnit, type FormatOptions, type Unit } from '@dynatrace-sdk/units'; import { type Formatter } from '../../../core/types/formatter.js'; export type FormatterContextProps = { /** * Custom or default formatter for the chart * @defaultValue the default formatter */ formatter: Formatter | FormatOptions; unit?: string | Unit; }; export declare const FormatterContext: Context; export declare const useFormatter: () => { formatter: (value: number) => string; unit?: undefined; } | { formatter: Formatter; unit: string | Unit | undefined; };