import { StyleValue, ExtractPropTypes } from 'vue'; import { ISharedRenderlessFunctionParams, ISharedRenderlessParamUtils } from './shared.type.js'; import { IRadioGroupProps } from './radio-group.type.js'; import '@opentiny/vue-common'; declare const $constants: { RADIO_GROUP: string; }; declare const radioButtonProps: { _constants: { type: ObjectConstructor; default: () => { RADIO_GROUP: string; }; }; name: StringConstructor; text: StringConstructor; events: { type: ObjectConstructor; default: () => {}; }; label: {}; disabled: BooleanConstructor; tipContent: StringConstructor; tiny_mode: StringConstructor; tiny_mode_root: BooleanConstructor; tiny_template: (FunctionConstructor | ObjectConstructor)[]; tiny_renderless: FunctionConstructor; tiny_theme: StringConstructor; tiny_mcp_config: ObjectConstructor; tiny_chart_theme: ObjectConstructor; }; /** * Copyright (c) 2022 - present TinyVue Authors. * Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd. * * Use of this source code is governed by an MIT-style license. * * THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, * BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR * A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS. * */ declare const handleChange: ({ constants, nextTick, dispatch, state }: Pick) => () => void; declare const getValue: (state: IRadioButtonRenderlessParams['state']) => () => IRadioGroupProps['modelValue']; declare const setValue: ({ state }: Pick) => (val: IRadioGroupProps['modelValue']) => void; declare const getGroup: ({ constants, parent: $parent }: Pick) => () => IRadioButtonState['radioGroup'] | null; declare const getStyle: (state: IRadioButtonRenderlessParams['state']) => () => { backgroundColor: any; borderColor: any; boxShadow: string; color: any; }; declare const toggleEvents: ({ vm, props }: Pick) => (isUnBind?: boolean) => void; declare const keydownHandle: ({ state, props }: Pick) => () => void; declare const handleFocus: (state: IRadioButtonRenderlessParams['state']) => () => boolean; declare const handleBlur: (state: IRadioButtonRenderlessParams['state']) => () => boolean; interface IRadioButtonState { focus: boolean; value: IRadioButtonProps['label']; radioGroup: ISharedRenderlessFunctionParams['parent'] | null; activeStyle: StyleValue; size: string; isDisabled: boolean; tabIndex: number; showTips: boolean; tipContent: string | undefined; } type IRadioButtonProps = ExtractPropTypes; type IRadioButtonConstants = typeof $constants; type IRadioButtonRenderlessParams = ISharedRenderlessFunctionParams & { state: IRadioButtonState; props: IRadioButtonProps; }; interface IRadioButtonApi { state: IRadioButtonState; handleChange: ReturnType; getValue: ReturnType; setValue: ReturnType; getGroup: ReturnType; getStyle: ReturnType; toggleEvents: ReturnType; keydownHandle: ReturnType; handleFocus: ReturnType; handleBlur: ReturnType; } type IRadioButtonRenderlessParamUtils = ISharedRenderlessParamUtils; export { IRadioButtonApi, IRadioButtonConstants, IRadioButtonProps, IRadioButtonRenderlessParamUtils, IRadioButtonRenderlessParams, IRadioButtonState };