import type { PropType } from 'vue'; /** * 校验器类型 * * @param { * } val 校验的值 */ export type Validator = (val: any) => boolean; /** * 返回值类型接口 * * @param { Object } type 参数类型 * @param { Function } default 默认值 * @param { Function } validator 校验器 */ export interface BasicType { readonly type: T; readonly default: () => F; readonly validator?: Validator; } /** * 设置 boolean 类型的 prop 参数 * * @param { boolean } [defaultVal = false] 默认值 * @returns { Object } 配置对象 */ export declare const setBooleanProp: (defaultVal?: boolean) => BasicType; /** * 设置 number 类型 props 参数 * * @param { number } [defaultVal] 默认值 * @returns { Object } 配置对象 */ export declare const setNumberProp: (defaultVal?: T | null | undefined) => BasicType; /** * 设置 string 类型的 prop 参数 * * @param { string } [defaultVal] 默认值 * @param { Function } [validator] 校验器 * @returns { Object } 配置对象 */ export declare const setStringProp: (defaultVal?: T | null | undefined, validator?: Validator) => BasicType, T | null>; /** * 设置 string & number 类型 props 参数 * * @param { string | number } [defaultVal] 默认值 * @returns { Object } 配置对象 */ export declare const setStringNumberProp: (defaultVal?: T | undefined) => BasicType, string | number | null>; /** * 设置 object 类型 props 参数 * * @param { Object } [defaultVal] 默认值 * @returns { Object } 配置对象 */ export declare const setObjectProp: (defaultVal?: null) => BasicType, null>; /** * 设置 function 类型 props 参数 * * @param { Function } [defaultVal] 默认值 * @returns { Object } 配置对象 */ export declare const setFunctionProp: (defaultVal?: null) => BasicType, null>; /** * 设置 array 类型 props 参数 * * @param { Array } [defaultVal] 默认值 * @returns { Object } 配置对象 */ export declare const setArrayProp: (defaultVal?: T | null | undefined) => BasicType, T | null>;