declare global { const __VLS_directiveBindingRestFields: { instance: null; oldValue: null; value: null; modifiers: any; dir: any }; type __VLS_BuiltInDirectives = { // values are not checked, as in vue-tsc 3.3 (`null` / `undefined` render nothing, others are // stringified) vHtml: (el: HTMLElement, binding: { value: unknown }) => void; vText: (el: HTMLElement, binding: { value: unknown }) => void; vCloak: (el: HTMLElement) => void; vMemo: (el: HTMLElement, binding: { value: any[] }) => void; }; type __VLS_Elements = __VLS_SpreadMerge; type __VLS_IsAny = 0 extends 1 & T ? true : false; type __VLS_PickNotAny = __VLS_IsAny extends true ? B : A; type __VLS_SpreadMerge = Omit & B; type __VLS_WithComponent< N0 extends string, LocalComponents, GlobalComponents, Self, N1 extends string, N2 extends string = N1, N3 extends string = N1, > = N1 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N1] } : N2 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N2] } : N3 extends keyof LocalComponents ? { [K in N0]: LocalComponents[N3] } : Self extends object ? { [K in N0]: Self } : N1 extends keyof GlobalComponents ? { [K in N0]: GlobalComponents[N1] } : N2 extends keyof GlobalComponents ? { [K in N0]: GlobalComponents[N2] } : N3 extends keyof GlobalComponents ? { [K in N0]: GlobalComponents[N3] } : {}; type __VLS_ExtractComponentContext = __VLS_PickNotAny< '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: infer Ctx } ? NonNullable : never : any, T extends (props: any, ctx: infer Ctx) => any ? (unknown extends Ctx ? any : Ctx) : any >; type __VLS_ExtractComponentProps = '__ctx' extends keyof __VLS_PickNotAny ? K extends { __ctx?: { props?: infer P } } ? NonNullable

: never : T extends (props: infer P, ...args: any) => any ? P : {}; type __VLS_FunctionalComponent = ( props: (T extends { $props: infer Props } ? Props : {}) & P, ctx?: any, ) => { __ctx?: { attrs?: any; slots?: T extends { $slots: infer Slots } ? Slots : Record; emit?: T extends { $emit: infer Emit } ? Emit : {}; props?: typeof props; expose?: (exposed: T) => void; }; }; type __VLS_IsFunction = K extends keyof T ? unknown extends T[K] ? false : true : false; type __VLS_ResolveEvent< Props, Emits, onEvent extends string, Event extends string, CamelizedEvent extends string, > = __VLS_IsFunction extends true ? { [K in onEvent]?: Props[K & keyof Props] } : __VLS_IsFunction extends true ? { [K in onEvent]?: Emits[Event & keyof Emits] } : __VLS_IsFunction extends true ? { [K in onEvent]?: Emits[CamelizedEvent & keyof Emits] } : Props; // fix https://github.com/vuejs/language-tools/issues/926 type __VLS_UnionToIntersection = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never; type __VLS_OverloadUnionInner = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner & U & ((...args: A) => R)> | ((...args: A) => R) : never; type __VLS_OverloadUnion = Exclude< __VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never >; type __VLS_ConstructorOverloads = __VLS_OverloadUnion extends infer F ? F extends (event: infer E, ...args: infer A) => any ? { [K in E & string]: (...args: A) => void } : never : never; type __VLS_NormalizeEmits = __VLS_PrettifyGlobal< __VLS_UnionToIntersection< & __VLS_ConstructorOverloads & { [K in keyof T]: T[K] extends any[] ? { (...args: T[K]): void } : never; } > >; type __VLS_EmitsToProps = __VLS_PrettifyGlobal< { [K in string & keyof T as `on${Capitalize}`]?: ( ...args: T[K] extends (...args: infer P) => any ? P : T[K] extends null ? any[] : never ) => any; } >; type __VLS_ShortEmits> = __VLS_UnionToIntersection< { [K in keyof E]: (event: K, ...args: E[K]) => void }[keyof E] >; type __VLS_ShortEmitsToObject = E extends Record ? { [K in keyof E]: (...args: E[K]) => any } : E; type __VLS_ResolveEmits< Comp, Emits, TypeEmits = Comp extends { __typeEmits?: infer T } ? unknown extends T ? {} : __VLS_ShortEmitsToObject : {}, NormalizedEmits = __VLS_NormalizeEmits extends infer E ? string extends keyof E ? {} : E : never, > = __VLS_SpreadMerge; type __VLS_ResolveDirectives = { [K in keyof T & string as `v${Capitalize}`]: T[K]; }; type __VLS_PrettifyGlobal = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; function __VLS_vFor(source: T): T extends number ? [number, number][] : T extends string ? [string, number][] : T extends readonly any[] ? (T extends readonly (infer U)[] ? [U, number] : never)[] : T extends Iterable ? (T extends Iterable ? [V, number] : never)[] : [T[keyof T], keyof T extends string ? keyof T : `${keyof T & (string | number)}`, number][]; function __VLS_vSlot(slot: S, decl?: D): D extends (...args: infer P) => any ? P : any[]; function __VLS_nonNull(value: T): NonNullable; function __VLS_asFunctionalDirective( dir: T, od: ObjectDirective, ): T extends ObjectDirective ? NonNullable< T[keyof T & ('created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted')] > // Vue invokes directives with all four arguments regardless of the // declared arity; widen functional directives so the synthetic trailing // arguments type-check instead of surfacing a spurious TS2554. : T extends (...args: infer P) => infer R ? (...args: [...P, ...any[]]) => R : (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void; function __VLS_asFunctionalComponent0( t: T, instance: K, ): T extends new(...args: any) => any ? __VLS_FunctionalComponent : T extends () => any ? (props: {}, ctx?: any) => ReturnType : T extends (...args: any) => any ? T : __VLS_FunctionalComponent<{}>; // `checkUnknownProps: false`: fallthrough attributes are allowed. vue-tsc drops TS2353 / TS2561 on // props by code, TypeScript 7 cannot, so a function component (a generic SFC's emitted type) gets // them in its props type; higher-order inference keeps its type parameters function __VLS_asFunctionalComponent1( t: (props: P, ...args: A) => R, instance?: unknown, ): (props: P & Record, ...args: A) => R; function __VLS_asFunctionalComponent1( t: T, instance: K, ): T extends new(...args: any) => any ? __VLS_FunctionalComponent> : T extends () => any ? (props: {}, ctx?: any) => ReturnType : T extends (...args: any) => any ? T : __VLS_FunctionalComponent<{}, Record>; type __VLS_PadArgs = A extends [any, ...infer Rest] ? [any, ...__VLS_PadArgs] : []; function __VLS_functionalComponentArgsRest any>( t: T, ): __VLS_PadArgs extends [any, ...infer Rest] ? Rest : []>; function __VLS_asFunctionalElement0(tag: T, endTag?: T): (attrs: T) => void; function __VLS_asFunctionalElement1(tag: T, endTag?: T): (attrs: T & Record) => void; function __VLS_asFunctionalSlot( slot: S, ): S extends (...args: any) => any ? (S extends () => infer R ? (props: {}) => R : S) : (S extends null | undefined ? never : (props: S) => any); function __VLS_omit(target: T, props: K): Omit; function __VLS_tryAsConstant(t: T): T; // Rewrites the binding so codegen's appended `.value` resolves with the // unwrapped type: a wholly-ref type stays as-is; anything else gains a // `Ref` conjunct (passed by the caller — this file cannot import vue) that // doubles as the idempotency marker for re-assertion. The tuple form keeps // every branch assignable to `T` (TS2677); distributing the intersection // would turn nullish union members into `never`. function __VLS_withDotValue( t: T, ref: Ref, ): asserts t is [T] extends [Ref] ? T : NonNullable & Ref & { value: T extends Ref & { value: infer V } ? V : T }; function __VLS_unwrap(t: T, ref: Ref): T extends Ref & { value: infer V } ? V : T; } export {};