import React from "react"; import type { Color } from "@shopify/react-native-skia"; import type { AxisProps, FrameInputProps, InputFields, NumericalFields, XAxisInputProps, XAxisPropsWithDefaults, YAxisInputProps, YAxisPropsWithDefaults } from "../../types"; /** * This hook builds the chart axes + the surrounding frame based on either the new x, y, frame props, or via backwards compatibility for the older axisOptions props and the associated default values it had. The defaults for the former are the new XAxisDefaults, YAxisDefaults, and FrameDefaults, while the defaults for the latter come from the older CartesianAxisDefaultProps. * * The hook returns a normalized object of `xAxis, yAxes, and frame` objects that are used to determine the axes to render and in the transformInputData function. */ export declare const useBuildChartAxis: , XK extends keyof InputFields, YK extends keyof NumericalFields>({ axisOptions, xAxis, yAxis, frame, yKeys, }: { axisOptions?: Partial, "xScale" | "yScale">>; xAxis?: XAxisInputProps; yAxis?: YAxisInputProps[]; frame?: FrameInputProps; yKeys: YK[]; }) => { xAxis: XAxisPropsWithDefaults; yAxes: YAxisPropsWithDefaults[]; frame: { lineColor: string; lineWidth: number; } | { lineWidth: import("../../types").SidedNumber; lineColor: Color; linePathEffect?: React.ReactElement, string | React.JSXElementConstructor> | undefined; }; };