import React from 'react'; import { BoxProps } from '../Box'; declare type InputProps = { inputProps: any; isOpen: boolean; open: any; close: any; }; declare type InputSignature = (inputProps: InputProps) => React.ReactNode; declare type ButtonInputProps = { /** * Clones immediate child with input specific props. Use a function to access props and pass them yourself. */ children: InputSignature | React.ReactElement; /** * Size of internal [Button](/button) and child [Input](/input). */ size?: 'xs' | 'sm' | 'md' | 'lg'; /** * Callback when the input reverts back to a button. */ onClose: () => void; /** * Callback when button is pressed to reveal the input. */ onOpen: () => void; } & BoxProps; declare type Props = React.RefAttributes & React.HTMLAttributes & ButtonInputProps; declare const ButtonInput: React.ForwardRefExoticComponent & React.RefAttributes>; export default ButtonInput;