import { FC, FieldsetHTMLAttributes, PropsWithChildren } from "react";
//#region src/components/form/checkbox-group/checkbox-group.d.ts
type CheckboxGroupContextValue = {
currentValue: string[];
disabled: boolean;
name: string;
toggleValue: (value: string) => void;
};
declare const useCheckboxGroupContext: () => CheckboxGroupContextValue | undefined;
type RootBaseProps = PropsWithChildren<{
invalid?: boolean;
required?: boolean;
name: string;
} & Omit, 'className' | 'style' | 'onChange' | 'defaultValue' | 'name'>>;
type RootControlledProps = {
value: string[];
onChange: (value: string[]) => void;
defaultValue?: never;
};
type RootUncontrolledProps = {
defaultValue?: string[];
value?: never;
onChange?: (value: string[]) => void;
};
type RootProps = RootBaseProps & (RootControlledProps | RootUncontrolledProps);
declare const CheckboxGroup: FC & {
Root: FC;
};
//#endregion
export { CheckboxGroup, useCheckboxGroupContext };