import React, { PropsWithChildren } from 'react'; import { Tree } from './Shared'; export interface ControlHook { step: keyof T; tree: T; destinations: Record void>; back: (currentData?: D) => void; data?: D; } /** * A react hook that exposes the current step, possible destinations, passed data, and the tree * being used. Destinations is an object where the keys are possible destinations and the values are * functions to move the wizard there. */ export declare function useControls(): ControlHook; export interface ControlProps { children: (steps: ControlHook) => React.ReactNode; } /** * Controls React Component * @param ChildrenRenderProp Children is a function that exposes the current step, possible destinations, * passed data, and the tree being used. Destinations is an object where the keys are possible destinations * and the values are functions to move the wizard there. */ export declare function Controls({ children, }: PropsWithChildren>): JSX.Element;