/*! * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ import { ExtendedHTMLElement } from '../../helper/dom'; import { MynahIcons, MynahIconsType } from '../icon'; export interface CheckboxProps { classNames?: string[]; attributes?: Record; title?: HTMLElement | ExtendedHTMLElement | string; label?: string; description?: ExtendedHTMLElement; value?: 'true' | 'false'; optional?: boolean; icon?: MynahIcons | MynahIconsType; onChange?: (value: 'true' | 'false') => void; wrapperTestId?: string; optionTestId?: string; } export declare abstract class CheckboxAbstract { render: ExtendedHTMLElement; setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; } export declare class CheckboxInternal extends CheckboxAbstract { private readonly checkboxWrapper; private readonly checkboxItem; render: ExtendedHTMLElement; constructor(props: CheckboxProps); setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; } export declare class Checkbox extends CheckboxAbstract { render: ExtendedHTMLElement; constructor(props: CheckboxProps); setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; }