import { RenderFunction, SetupContext, Ref } from 'vue' import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf } from '@vxe-ui/core' import { VxeCheckboxPropTypes } from './checkbox' /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */ export declare const VxeCheckboxButton: DefineVxeComponentApp export type VxeCheckboxButtonComponent = DefineVxeComponentOptions export type VxeCheckboxButtonInstance = DefineVxeComponentInstance export interface VxeCheckboxButtonConstructor extends VxeComponentBaseOptions, VxeCheckboxButtonMethods { props: VxeCheckboxButtonProps context: SetupContext reactData: CheckboxButtonReactData getRefMaps(): CheckboxButtonPrivateRef getComputeMaps(): CheckboxButtonPrivateComputed renderVN: RenderFunction } export interface CheckboxButtonPrivateRef { refElem: Ref } export interface VxeCheckboxButtonPrivateRef extends CheckboxButtonPrivateRef {} export namespace VxeCheckboxButtonPropTypes { export type Size = VxeCheckboxPropTypes.Size export type ModelValue = any /** * 已废弃,被 CheckedValue 替换 * @deprecated */ export type Label = VxeCheckboxPropTypes.Label export type Title = VxeCheckboxPropTypes.Title export type CheckedValue = VxeCheckboxPropTypes.CheckedValue export type UncheckedValue = VxeCheckboxPropTypes.UncheckedValue export type Content = VxeCheckboxPropTypes.Content export type Icon = string export type Disabled = VxeCheckboxPropTypes.Disabled } export interface VxeCheckboxButtonProps { size?: VxeCheckboxButtonPropTypes.Size modelValue?: VxeCheckboxButtonPropTypes.ModelValue /** * 已废弃,被 checked-value 替换 * @deprecated */ label?: VxeCheckboxButtonPropTypes.Label title?: VxeCheckboxButtonPropTypes.Title checkedValue?: VxeCheckboxButtonPropTypes.CheckedValue uncheckedValue?: VxeCheckboxButtonPropTypes.UncheckedValue content?: VxeCheckboxButtonPropTypes.Content icon?: VxeCheckboxButtonPropTypes.Icon disabled?: VxeCheckboxButtonPropTypes.Disabled } export interface CheckboxButtonPrivateComputed {} export interface VxeCheckboxButtonPrivateComputed extends CheckboxButtonPrivateComputed {} export interface CheckboxButtonReactData {} export interface CheckboxButtonMethods { dispatchEvent(type: ValueOf, params: Record, evnt: Event | null): void } export interface VxeCheckboxButtonMethods extends CheckboxButtonMethods {} export interface CheckboxButtonPrivateMethods {} export interface VxeCheckboxButtonPrivateMethods extends CheckboxButtonPrivateMethods {} export type VxeCheckboxButtonEmits = ['update:modelValue', 'change'] export namespace VxeCheckboxButtonDefines { interface CheckboxButtonEventParams extends VxeComponentEventParams { $checkboxButton: VxeCheckboxButtonConstructor } export interface ChangeParams { value: any label: any } export interface ChangeEventParams extends CheckboxButtonEventParams, ChangeParams {} } export type VxeCheckboxButtonEventProps = { 'onUpdate:modelValue'?: VxeCheckboxButtonEvents.UpdateModelValue onChange?: VxeCheckboxButtonEvents.Change } export interface VxeCheckboxButtonListeners { 'update:modelValue'?: VxeCheckboxButtonEvents.UpdateModelValue change?: VxeCheckboxButtonEvents.Change } export namespace VxeCheckboxButtonEvents { export type UpdateModelValue = (modelValue: VxeCheckboxButtonPropTypes.ModelValue) => void export type Change = (params: VxeCheckboxButtonDefines.ChangeEventParams) => void } export namespace VxeCheckboxButtonSlotTypes { export interface DefaultSlotParams {} } export interface VxeCheckboxButtonSlots { default?: (params: VxeCheckboxButtonSlotTypes.DefaultSlotParams) => any } export const CheckboxButton: typeof VxeCheckboxButton export default VxeCheckboxButton