/*! * 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 SwitchProps { 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; testId?: string; } export declare abstract class SwitchAbstract { render: ExtendedHTMLElement; setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; } export declare class SwitchInternal extends SwitchAbstract { private readonly checkboxWrapper; private readonly checkboxItem; render: ExtendedHTMLElement; constructor(props: SwitchProps); setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; } export declare class Switch extends SwitchAbstract { render: ExtendedHTMLElement; constructor(props: SwitchProps); setValue: (value: 'true' | 'false') => void; getValue: () => 'true' | 'false'; setEnabled: (enabled: boolean) => void; }