import React from 'react'; /** * Object that is fully describes the pattern */ export type Pattern = { /** * SVG jsx element and svg viewbox of the SVG pattern * used to fill chart elements such bars or areas */ fill: { viewBox: string; children: React.ReactNode; }; /** * SVG jsx element, viewbox and render size of the single * pattern image used on line dots or caps */ symbol: { viewBox: string; size: [width: number, height: number]; children: React.ReactNode; }; /** * SVG stroke-dasharray property that defines line chart * lines dash pattern */ dasharray?: string; }; declare const defaultPatterns: { starSmall: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; romb: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; circleOutline: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; triangleDown: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; rombOutline: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; square: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; trees: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; wave: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; star: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; cogwheel: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; crossesDiagonal: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; triangleOutline: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; chain: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; squama: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; linesDouble: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; zigzagVertical: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; triangleDownOutline: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; crosses: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; linesDoubleHorizontal: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; waveVertical: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; squareOutline: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; triangle: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; crescent: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; zigzag: { fill: { viewBox: string; children: JSX.Element; }; symbol: { viewBox: string; size: [number, number]; children: JSX.Element; }; dasharray: string; }; }; export type PatternsConfig = true | keyof typeof defaultPatterns | Pattern | Pattern[]; export declare const PatternFill: ({ id, color, patternKey, patterns, }: { id: string; color: string; patternKey: string; patterns?: PatternsConfig | undefined; }) => JSX.Element; export declare const getPatternSymbolSize: ({ patternKey, patterns, }: { patternKey: string; patterns?: PatternsConfig | undefined; }) => [width: number, height: number]; export declare const PatternSymbol: React.FC<{ color: string; patternKey: string; patterns?: PatternsConfig; } & React.ComponentProps<'svg'>>; export declare const resolvePatternDasharray: (patternKey: string, patterns: PatternsConfig) => string | undefined; export {};