import type {Prop} from "../composition/reactivity"; declare type RequiredKeysInPropOptions = { [K in keyof T]: T[K] extends { required: true; } ? K : never; }[keyof T]; declare type OptionalKeysInPropOptions = Exclude>; declare type InferPropType = [T] extends [null] ? any : [T] extends [{ type: null | true; }] ? any : [T] extends [ObjectConstructor | { type: ObjectConstructor; }] ? Record : [T] extends [BooleanConstructor | { type: BooleanConstructor; }] ? boolean : [T] extends [DateConstructor | { type: DateConstructor; }] ? Date : [T] extends [(infer U)[] | { type: (infer U)[]; }] ? U extends DateConstructor ? Date | InferPropType : InferPropType : [T] extends [Prop] ? unknown extends V ? D : V : T; export declare type ExtractComponentPropTypes = O extends object ? { [K in keyof O]?: unknown; } & // This is needed to keep the relation between the option prop and the props, allowing to use ctrl+click to navigate to the prop options. see: #3656 { [K in RequiredKeysInPropOptions]: InferPropType; } & { [K in OptionalKeysInPropOptions]?: InferPropType; } : { [K in string]: any; };