import { FC, InputHTMLAttributes, ReactNode } from 'react';
import { StandardProps } from '@react-foundry/component-helpers';
import '../assets/Checkboxes.scss';
export type Option = {
/** Content to render only when the option is selected */
conditional?: ReactNode;
/** Whether the the option is disabled */
disabled?: boolean;
/** Whether the option can only be selected on its own */
exclusive?: boolean;
/** Hint for the option */
hint?: string;
/** Label for the option */
label: ReactNode;
/** Whether the option is selected */
selected?: boolean;
/** Value of the option */
value: string;
};
export type OptionOrSeperator = string | Option;
export declare const isSeperator: (v: OptionOrSeperator) => v is string;
export declare const isOption: (v: OptionOrSeperator) => v is Option;
export type CheckboxesProps = StandardProps & Omit, 'label'> & {
/** Error message */
error?: string;
/** Hint */
hint?: string;
/** HTML id (If not specified then the name will be used) */
id?: string;
/** Label */
label: ReactNode;
/** HTML name */
name: string;
/** List of options to select from */
options: OptionOrSeperator[];
};
export declare const Checkboxes: FC;
export default Checkboxes;