import { FC, ReactNode } from 'react'; import { CheckboxProps as ChakraCheckboxProps, ComponentWithAs } from '@chakra-ui/react'; import { InputProps } from '../Input'; export type CheckboxProps = ChakraCheckboxProps; type CheckboxWithOthers = ComponentWithAs<'input', CheckboxProps> & { OthersCheckbox: typeof OthersCheckbox; OthersInput: typeof OthersInput; OthersWrapper: typeof OthersWrapper; }; export declare const Checkbox: CheckboxWithOthers; export interface CheckboxOthersWrapperProps { colorScheme?: CheckboxProps['colorScheme']; size?: string; children: ReactNode; } /** * Provides context values for the Others option. */ declare const OthersWrapper: FC; /** * Wrapper for the checkbox part of the Others option. */ declare const OthersCheckbox: ComponentWithAs<"input", ChakraCheckboxProps>; /** * Wrapper for the input part of the Others option. */ declare const OthersInput: ComponentWithAs<"input", InputProps>; export {};