declare const text: string; export default text; export type ComponentType = T extends new () => {} ? 1 : T extends (...args: any) => any ? 2 : 0; export type ComponentProps = T extends new () => { $props: infer P; } ? NonNullable

: T extends (props: infer P, ...args: any) => any ? P : {}; export type ComponentSlots = T extends new () => { $slots: infer S; } ? NonNullable : T extends (props: any, ctx: { slots: infer S; }, ...args: any) => any ? NonNullable : {}; export type ComponentEmit = T extends new () => { $emit: infer E; } ? NonNullable : T extends (props: any, ctx: { emit: infer E; }, ...args: any) => any ? NonNullable : {}; export type ComponentExposed = T extends new () => infer E ? E : T extends (props: any, ctx: { expose(exposed: infer E): any; }, ...args: any) => any ? NonNullable : {}; /** * Vue 2.x */ export type Vue2ComponentSlots = T extends new () => { $scopedSlots: infer S; } ? NonNullable : T extends (props: any, ctx: { slots: infer S; }, ...args: any) => any ? NonNullable : {};