import { ExtractPropTypes, StyleValue } from 'vue'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from '../../../shared.type'; import { toggle, computedWarpClasses, computedInnerClasses, computedStyle } from './renderless'; export type { ISharedRenderlessParamHooks } from '../../../shared.type'; export declare const $constants: { MOBILE_PREFIXCLS: string; prefixcls(): string; }; export declare const switchProps: { _constants: { type: ObjectConstructor; default: () => { MOBILE_PREFIXCLS: string; prefixcls(): string; }; }; disabled: { type: BooleanConstructor; default: boolean; }; showText: { type: BooleanConstructor; default: undefined; }; types: { type: StringConstructor; }; falseColor: StringConstructor; falseValue: { type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; default: boolean; }; mini: { type: BooleanConstructor; default: boolean; }; modelValue: { type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; default: boolean; }; size: (NumberConstructor | StringConstructor)[]; tabindex: { type: StringConstructor; default: string; }; trueColor: StringConstructor; trueValue: { type: (NumberConstructor | StringConstructor | BooleanConstructor)[]; default: boolean; }; beforeChange: FunctionConstructor; displayOnly: { type: BooleanConstructor; default: boolean; }; loading: { type: BooleanConstructor; default: boolean; }; }; export interface ISwitchState { currentValue: string | number | boolean; innerClasses: string; wrapClasses: ISwitchClass; style: StyleValue; formDisabled: boolean; disabled: boolean; isDisplayOnly: boolean; showText: boolean; } export type ISwitchClass = Array; export type ISwitchProps = ExtractPropTypes; export type ISwitchConstants = typeof $constants; export type ISwitchRenderlessParams = ISharedRenderlessFunctionParams & { state: ISwitchState; props: ISwitchProps; prefixCls: string; }; export interface ISwitchApi { state: ISwitchState; toggle: ReturnType; computedWarpClasses: ReturnType; computedInnerClasses: ReturnType; computedStyle: ReturnType; } export type ISwitchRenderlessParamUtils = ISharedRenderlessParamUtils;