import { Component, TypeDefs } from 'intact-vue'; import { Sizes } from '../../styles/utils'; import type { Events } from '../types'; export interface SwitchProps { name?: string; on?: string; off?: string; value?: True | False; trueValue?: True; falseValue?: False; width?: number | string; height?: number | string; size?: Sizes; disabled?: boolean; loading?: boolean; beforeChange?: (from: True | False | undefined, to: True | False | undefined) => boolean | Promise; } export interface SwitchEvents { click: [MouseEvent]; keypress: [KeyboardEvent]; } export interface SwitchBlocks { off: null; on: null; } export declare class Switch extends Component, SwitchEvents, SwitchBlocks> { static template: string | import('intact-vue').Template; static typeDefs: Required>>; static defaults: () => Partial>; static events: Events; private elementRef; private draggable; private config; private onClick; private onClickOnHandle; private onKeypress; toggle(isKeypress: boolean): Promise; isChecked(): boolean; check(): void; uncheck(): void; }