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 chip: 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 type CssMixBlendMode = | 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity' export type StackOrder = 'ascending' | 'descending' | 'insideOut' | 'none' | 'reverse' export type StackOffset = 'expand' | 'diverging' | 'none' | 'silhouette' | 'wiggle' export type AreaCurve = | 'basis' | 'cardinal' | 'catmullRom' | 'linear' | 'monotoneX' | 'monotoneY' | 'natural' | 'step' | 'stepAfter' | 'stepBefore' }