import React from 'react'; import { AnimationProps, Component, DataValue, Filter } from '../lib/types'; import { SvgAttributes } from '../lib/types.svg'; export interface GridProps { children?: React.ReactNode; xAnchor?: 'bottom' | 'top' | 'none'; yAnchor?: 'left' | 'right' | 'none'; /** Ideal number di pixel per tick */ tickSize?: number; /** Ideal total number of ticks */ tickCount?: number; } export interface GridLinesProps extends Omit, AnimationProps { ticks?: DataValue[]; filter?: Filter; } export interface GridLabelsProps extends Omit, AnimationProps { format?: (allValues: DataValue[]) => (value: DataValue, i: number) => string; padding?: number; threshold?: number; inner?: boolean; ticks?: DataValue[]; filter?: Filter; } export declare type GridComponent = Component & { XAxes: Component; YAxes: Component; XLabels: Component; YLabels: Component; XLines: Component; YLines: Component; }; export declare type AxesAnchor = 'start' | 'end' | 'none'; export declare const Grid: GridComponent;