import { AnyScale, ScaleValue, TicksSpec } from '@dfnivo/scales'; import { AxisLegendPosition, ValueFormatter } from '../types'; import { CompleteTheme } from '@dfnivo/core'; import { CanvasRenderable, CanvasRenderableProps } from '@dfnivo/canvas'; export type GetCanvasAxisProps = { axis: 'x' | 'y'; scale: AnyScale; x?: number; y?: number; length: number; ticksPosition: 'before' | 'after'; tickValues?: TicksSpec; tickSize?: number; tickPadding?: number; tickRotation?: number; format?: string | ValueFormatter; legend?: string; legendPosition?: AxisLegendPosition; legendOffset?: number; theme: CompleteTheme; }; export declare const getCanvasAxis: ({ axis, scale, x, y, length, ticksPosition, tickValues, tickSize, tickPadding, tickRotation, format: _format, legend, legendPosition, legendOffset, theme, }: GetCanvasAxisProps) => CanvasRenderable[]; export declare const renderAxisToCanvas: (ctx: CanvasRenderingContext2D, props: GetCanvasAxisProps) => void; //# sourceMappingURL=axis.d.ts.map