import { SetupContext, Ref, ComputedRef } from 'vue'; import { type IRenderConfig, type IAnyObject, type ComposeType, type ExtendedConfig } from '../utils'; import { UpdateFormStream, InputProps } from '../helper'; export declare function useFormInput(props: InputProps, context: SetupContext, { fromModelValue, toModelValue, maxOtherKey }?: { fromModelValue?: (modelVal: unknown) => unknown; toModelValue?: (value: unknown) => unknown; maxOtherKey?: number; }): { inputRef: Ref; inputStyle: ComputedRef; proxyValue: import("vue").WritableComputedRef; securityConfig: ComputedRef>; emitInput: (val: unknown) => void; emitModelValue: (val: unknown) => void; emitOtherValue: (val: unknown) => void; updateStream: UpdateFormStream; proxyOtherValue: import("vue").WritableComputedRef[]; placeholder: ComputedRef; clearable: ComputedRef; width: ComputedRef; noMatchText: ComputedRef; }; export declare function useFormView(props: InputProps, { maxOtherKey }?: { maxOtherKey?: number; }): { securityConfig: ComputedRef>; clearable: ComputedRef; width: ComputedRef; inputStyle: ComputedRef; placeholder: ComputedRef; proxyOtherValue: import("vue").WritableComputedRef[]; }; export declare const useElementFormEvent: () => { handleChange: () => void; handleBlur: () => void; handleFocus: (fieldKey?: string) => void; }; export declare const judgeUseFn: (key: string, config: IRenderConfig, effect?: Record) => unknown; interface IOptionProps { label: string; value: string; children: string; disabled: string; } export declare const useOptions: (props: InputProps, multiple: Ref | boolean, updateStream?: UpdateFormStream, context?: SetupContext, { autoGet, isTree }?: { autoGet?: boolean | undefined; isTree?: boolean | undefined; }) => { optionProps: ComputedRef; options: Ref; getOptions: (val?: IAnyObject, outVal?: IAnyObject) => Promise; isObjectOption: ComputedRef; getValue: (modelValue: string | Array) => string | unknown[]; getModelValue: (value: unknown) => unknown; getOtherValue: (modelValue: unknown, value: unknown) => unknown; splitKey: ComputedRef; proxyOptionsValue: import("vue").WritableComputedRef; }; /** * 从props.config去除制定的值 * propKeys事例: * [ * 'a', 获取A * ['b','b1'], 获取b的值转为b1 * ['c',{key:'c1', defaultValue: 1}], 获取c的值转为c1若c的值不存在则赋值1 * ['d',{ defaultValue: 1}] 获取d的若d不存在则赋值1 * ] * @param props * @param propKeys * */ export declare const useInputProps: (props: InputProps, propKeys?: Array) => ComputedRef<{}>; export {};