import * as React from 'react'; import { FunctionComponent, PureComponent, ReactElement, SVGProps } from 'react'; import { Props as TextProps } from '../component/Text'; import { AxisDomain, DataKey, PresentationAttributesAdaptChildEvent, ScaleType, TickItem } from '../util/types'; import { RechartsScale } from '../util/ChartUtils'; /** * These are injected from Redux, are required, but cannot be set by user. */ interface PropsInjectedFromRedux { cx?: number; cy?: number; radius?: number; } export interface PolarAngleAxisProps extends PropsInjectedFromRedux { allowDecimals?: boolean; domain?: AxisDomain; allowDuplicatedCategory?: boolean; angleAxisId?: string | number; axisLineType?: 'polygon' | 'circle'; ticks?: ReadonlyArray; orientation?: 'inner' | 'outer'; axisLine?: boolean | SVGProps; tickSize?: number; tickCount?: number; tickLine?: boolean | SVGProps; tickFormatter?: (value: any, index: number) => string; reversed: boolean; dataKey?: DataKey; tick?: SVGProps | ReactElement | ((props: TickItemTextProps) => ReactElement) | boolean; scale: ScaleType | RechartsScale; type?: 'category' | 'number'; } type AxisSvgProps = Omit, 'scale' | 'type'>; export type Props = AxisSvgProps & PolarAngleAxisProps; export type TickItemTextProps = TextProps & { index: number; payload: any; }; export declare const PolarAngleAxisWrapper: FunctionComponent; export declare class PolarAngleAxis extends PureComponent { static displayName: string; static axisType: string; static defaultProps: { readonly allowDuplicatedCategory: true; readonly angleAxisId: 0; readonly axisLine: true; readonly cx: 0; readonly cy: 0; readonly orientation: "outer"; readonly reversed: false; readonly scale: "auto"; readonly tick: true; readonly tickLine: true; readonly tickSize: 8; readonly type: "category"; }; render(): React.ReactNode; } export {};