/** * @fileOverview Default Tooltip Content */ import * as React from 'react'; import { CSSProperties, ReactNode, SVGProps } from 'react'; import { DataKey } from '../util/types'; export type TooltipType = 'none'; export type ValueType = number | string | Array; export type NameType = number | string; export type Formatter = (value: TValue, name: TName, item: Payload, index: number, payload: ReadonlyArray>) => [React.ReactNode, TName] | React.ReactNode; export interface Payload extends Omit, 'name'> { type?: TooltipType; color?: string; formatter?: Formatter; name?: TName; value?: TValue; unit?: ReactNode; fill?: string; dataKey?: DataKey; nameKey?: DataKey; payload?: any; chartType?: string; stroke?: string; strokeDasharray?: string | number; strokeWidth?: number | string; className?: string; hide?: boolean; } export interface Props { separator?: string; wrapperClassName?: string; labelClassName?: string; formatter?: Formatter; contentStyle?: CSSProperties; itemStyle?: CSSProperties; labelStyle?: CSSProperties; labelFormatter?: (label: any, payload: ReadonlyArray>) => ReactNode; label?: any; payload?: ReadonlyArray>; itemSorter?: 'dataKey' | 'value' | 'name' | ((item: Payload) => number | string); accessibilityLayer: boolean; } export declare const DefaultTooltipContent: (props: Props) => React.JSX.Element;