import { EpProp, EpPropConvert, EpPropFinalized, EpPropInput, EpPropMergeType, IfEpProp, IfNativePropType, NativePropType } from "./types.js"; import { PropType } from "vue"; //#region ../../packages/utils/vue/props/runtime.d.ts declare const epPropKey = "__epPropKey"; declare const definePropType: (val: any) => PropType; declare const isEpProp: (val: unknown) => val is EpProp; /** * @description Build prop. It can better optimize prop types * @description 生成 prop,能更好地优化类型 * @example // limited options // the type will be PropType<'light' | 'dark'> buildProp({ type: String, values: ['light', 'dark'], } as const) * @example // limited options and other types // the type will be PropType<'small' | 'large' | number> buildProp({ type: [String, Number], values: ['small', 'large'], validator: (val: unknown): val is number => typeof val === 'number', } as const) @link see more: https://github.com/element-plus/element-plus/pull/3341 */ declare const buildProp: = never, Required extends boolean = false>(prop: EpPropInput, key?: string) => EpPropFinalized; declare const buildProps: >>(props: Props) => { [K in keyof Props]: IfEpProp>> }; //#endregion export { buildProp, buildProps, definePropType, epPropKey, isEpProp };