import * as React from 'react'; import { SVGProps } from 'react'; /** * This is an abstraction for rendering a user defined prop for a customized shape in several forms. * * is the root and will handle taking in: * - an object of svg properties * - a boolean * - a render prop(inline function that returns jsx) * - a React element * * is a subcomponent of and used to match a component * to the value of props.shapeType that is passed to the root. * */ type ShapeType = 'trapezoid' | 'rectangle' | 'sector' | 'symbols'; export type ShapeProps = { shapeType: ShapeType; option: OptionType; isActive?: boolean; activeClassName?: string; propTransformer?: (option: OptionType, props: unknown) => ShapePropsType; } & ExtraProps; export declare function getPropsFromShapeOption(option: unknown): SVGProps; export declare function Shape({ option, shapeType, propTransformer, activeClassName, isActive, ...props }: ShapeProps): React.JSX.Element; export {};