import * as React from 'react'; import { InputProps } from './input'; import { TypeValue } from './type-value'; interface OwnProps extends Omit { onChange: (value: TypeValue) => void; value: TypeValue; } /** * Toggle Button Input * @public */ export type Props = React.PropsWithChildren>; /** * A component that render an input and also accept other components as child. * * @template T * @param {Props} props * @returns {JSX.Element} * @example * Here's an example * ```tsx * export function MyComponent() { * const [value, setValue] = useState<{ value: string; type: Type | null }>({ * value: '', * type: null, * }); * * return ( * * * * Item 1 * * * Item 2 * * * Item 3 * * * * ); * } * ``` */ export declare function ToggleButtonInput(props: Props): JSX.Element; export type ToggleButtonInputProps = OwnProps; export {};