import * as React from 'react' import { number } from 'prop-types' declare module '@nivo/core' { export interface Dimensions { height: number width: number } export type Box = Partial<{ bottom: number left: number right: number top: number }> export type BoxAlign = | 'center' | 'top-left' | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left' | 'left' export const boxAlignments: BoxAlign[] export function alignBox(box: Box, container: Box, alignment: BoxAlign): [number, number] export type GetColor = (datum: T) => string export type Colors = string[] | string export interface ColorProps { colors?: Colors colorBy?: string | GetColor } export type Theme = Partial<{ background: string axis: Partial<{ domain: Partial<{ line: Partial }> ticks: Partial<{ line: Partial text: Partial }> legend: Partial<{ text: Partial }> }> grid: Partial<{ line: Partial }> legends: Partial<{ text: Partial }> labels: Partial<{ text: Partial }> markers: Partial<{ lineColor: string lineStrokeWidth: number textColor: string fontSize: string | 0 }> dots: Partial<{ text: Partial }> tooltip: Partial<{ container: Partial basic: Partial table: Partial tableCell: Partial }> }> export type MotionProps = Partial<{ animate: boolean motionDamping: number motionStiffness: number }> export type SvgFillMatcher = (datum: T) => boolean export interface SvgDefsAndFill { defs?: Array<{ id: string [key: string]: any }> fill?: Array<{ id: string; match: object | SvgFillMatcher | '*' }> } export interface CartesianMarkerProps { axis: 'x' | 'y' value: string | number | Date legend?: string lineStyle?: Partial textStyle?: Partial } export interface BasicTooltipProps { id: React.ReactNode value?: string | number enableChip?: boolean color: string format?: (value: number | string) => number | string renderContent?: () => React.ReactNode theme: Pick } export class BasicTooltip extends React.Component {} export interface TableTooltipProps { title?: React.ReactNode rows: React.ReactNode[][] theme: Pick renderContent?: () => React.ReactNode } export class TableTooltip extends React.Component {} }