runtime-core.d.ts 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998
  1. import { camelize } from '@vue/shared';
  2. import { capitalize } from '@vue/shared';
  3. import { ComponentPropsOptions as ComponentPropsOptions_2 } from '@vue/runtime-core';
  4. import { computed as computed_2 } from '@vue/reactivity';
  5. import { ComputedGetter } from '@vue/reactivity';
  6. import { ComputedRef } from '@vue/reactivity';
  7. import { ComputedSetter } from '@vue/reactivity';
  8. import { customRef } from '@vue/reactivity';
  9. import { CustomRefFactory } from '@vue/reactivity';
  10. import { DebuggerEvent } from '@vue/reactivity';
  11. import { DebuggerEventExtraInfo } from '@vue/reactivity';
  12. import { DebuggerOptions } from '@vue/reactivity';
  13. import { DeepReadonly } from '@vue/reactivity';
  14. import { effect } from '@vue/reactivity';
  15. import { EffectScheduler } from '@vue/reactivity';
  16. import { EffectScope } from '@vue/reactivity';
  17. import { effectScope } from '@vue/reactivity';
  18. import { getCurrentScope } from '@vue/reactivity';
  19. import { IfAny } from '@vue/shared';
  20. import { isProxy } from '@vue/reactivity';
  21. import { isReactive } from '@vue/reactivity';
  22. import { isReadonly } from '@vue/reactivity';
  23. import { isRef } from '@vue/reactivity';
  24. import { isShallow } from '@vue/reactivity';
  25. import { LooseRequired } from '@vue/shared';
  26. import { markRaw } from '@vue/reactivity';
  27. import { normalizeClass } from '@vue/shared';
  28. import { normalizeProps } from '@vue/shared';
  29. import { normalizeStyle } from '@vue/shared';
  30. import { onScopeDispose } from '@vue/reactivity';
  31. import { proxyRefs } from '@vue/reactivity';
  32. import { reactive } from '@vue/reactivity';
  33. import { ReactiveEffect } from '@vue/reactivity';
  34. import { ReactiveEffectOptions } from '@vue/reactivity';
  35. import { ReactiveEffectRunner } from '@vue/reactivity';
  36. import { ReactiveFlags } from '@vue/reactivity';
  37. import { readonly } from '@vue/reactivity';
  38. import { Ref } from '@vue/reactivity';
  39. import { ref } from '@vue/reactivity';
  40. import { ShallowReactive } from '@vue/reactivity';
  41. import { shallowReactive } from '@vue/reactivity';
  42. import { shallowReadonly } from '@vue/reactivity';
  43. import { ShallowRef } from '@vue/reactivity';
  44. import { shallowRef } from '@vue/reactivity';
  45. import { ShallowUnwrapRef } from '@vue/reactivity';
  46. import { ShapeFlags } from '@vue/shared';
  47. import { SlotFlags } from '@vue/shared';
  48. import { stop as stop_2 } from '@vue/reactivity';
  49. import { toDisplayString } from '@vue/shared';
  50. import { toHandlerKey } from '@vue/shared';
  51. import { toRaw } from '@vue/reactivity';
  52. import { ToRef } from '@vue/reactivity';
  53. import { toRef } from '@vue/reactivity';
  54. import { ToRefs } from '@vue/reactivity';
  55. import { toRefs } from '@vue/reactivity';
  56. import { TrackOpTypes } from '@vue/reactivity';
  57. import { TriggerOpTypes } from '@vue/reactivity';
  58. import { triggerRef } from '@vue/reactivity';
  59. import { UnionToIntersection } from '@vue/shared';
  60. import { unref } from '@vue/reactivity';
  61. import { UnwrapNestedRefs } from '@vue/reactivity';
  62. import { UnwrapRef } from '@vue/reactivity';
  63. import { WritableComputedOptions } from '@vue/reactivity';
  64. import { WritableComputedRef } from '@vue/reactivity';
  65. /**
  66. * Default allowed non-declared props on component in TSX
  67. */
  68. export declare interface AllowedComponentProps {
  69. class?: unknown;
  70. style?: unknown;
  71. }
  72. export declare interface App<HostElement = any> {
  73. version: string;
  74. config: AppConfig;
  75. use(plugin: Plugin_2, ...options: any[]): this;
  76. mixin(mixin: ComponentOptions): this;
  77. component(name: string): Component | undefined;
  78. component(name: string, component: Component): this;
  79. directive(name: string): Directive | undefined;
  80. directive(name: string, directive: Directive): this;
  81. mount(rootContainer: HostElement | string, isHydrate?: boolean, isSVG?: boolean): ComponentPublicInstance;
  82. unmount(): void;
  83. provide<T>(key: InjectionKey<T> | string, value: T): this;
  84. _uid: number;
  85. _component: ConcreteComponent;
  86. _props: Data | null;
  87. _container: HostElement | null;
  88. _context: AppContext;
  89. _instance: ComponentInternalInstance | null;
  90. /**
  91. * v2 compat only
  92. */
  93. filter?(name: string): Function | undefined;
  94. filter?(name: string, filter: Function): this;
  95. /* Excluded from this release type: _createRoot */
  96. }
  97. export declare interface AppConfig {
  98. readonly isNativeTag?: (tag: string) => boolean;
  99. performance: boolean;
  100. optionMergeStrategies: Record<string, OptionMergeFunction>;
  101. globalProperties: Record<string, any>;
  102. errorHandler?: (err: unknown, instance: ComponentPublicInstance | null, info: string) => void;
  103. warnHandler?: (msg: string, instance: ComponentPublicInstance | null, trace: string) => void;
  104. /**
  105. * Options to pass to `@vue/compiler-dom`.
  106. * Only supported in runtime compiler build.
  107. */
  108. compilerOptions: RuntimeCompilerOptions;
  109. /**
  110. * @deprecated use config.compilerOptions.isCustomElement
  111. */
  112. isCustomElement?: (tag: string) => boolean;
  113. /**
  114. * Temporary config for opt-in to unwrap injected refs.
  115. * TODO deprecate in 3.3
  116. */
  117. unwrapInjectedRef?: boolean;
  118. }
  119. export declare interface AppContext {
  120. app: App;
  121. config: AppConfig;
  122. mixins: ComponentOptions[];
  123. components: Record<string, Component>;
  124. directives: Record<string, Directive>;
  125. provides: Record<string | symbol, any>;
  126. /* Excluded from this release type: optionsCache */
  127. /* Excluded from this release type: propsCache */
  128. /* Excluded from this release type: emitsCache */
  129. /* Excluded from this release type: reload */
  130. /* Excluded from this release type: filters */
  131. }
  132. declare interface AppRecord {
  133. id: number;
  134. app: App;
  135. version: string;
  136. types: Record<string, string | Symbol>;
  137. }
  138. export declare type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
  139. export declare interface AsyncComponentOptions<T = any> {
  140. loader: AsyncComponentLoader<T>;
  141. loadingComponent?: Component;
  142. errorComponent?: Component;
  143. delay?: number;
  144. timeout?: number;
  145. suspensible?: boolean;
  146. onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
  147. }
  148. declare type AsyncComponentResolveResult<T = Component> = T | {
  149. default: T;
  150. };
  151. export declare const BaseTransition: new () => {
  152. $props: BaseTransitionProps<any>;
  153. };
  154. export declare interface BaseTransitionProps<HostElement = RendererElement> {
  155. mode?: 'in-out' | 'out-in' | 'default';
  156. appear?: boolean;
  157. persisted?: boolean;
  158. onBeforeEnter?: (el: HostElement) => void;
  159. onEnter?: (el: HostElement, done: () => void) => void;
  160. onAfterEnter?: (el: HostElement) => void;
  161. onEnterCancelled?: (el: HostElement) => void;
  162. onBeforeLeave?: (el: HostElement) => void;
  163. onLeave?: (el: HostElement, done: () => void) => void;
  164. onAfterLeave?: (el: HostElement) => void;
  165. onLeaveCancelled?: (el: HostElement) => void;
  166. onBeforeAppear?: (el: HostElement) => void;
  167. onAppear?: (el: HostElement, done: () => void) => void;
  168. onAfterAppear?: (el: HostElement) => void;
  169. onAppearCancelled?: (el: HostElement) => void;
  170. }
  171. declare const enum BooleanFlags {
  172. shouldCast = 0,
  173. shouldCastTrue = 1
  174. }
  175. export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[];
  176. export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
  177. export { camelize }
  178. export { capitalize }
  179. /**
  180. * Use this for features with the same syntax but with mutually exclusive
  181. * behavior in 2 vs 3. Only warn if compat is enabled.
  182. * e.g. render function
  183. */
  184. declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
  185. declare interface ClassComponent {
  186. new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>;
  187. __vccOpts: ComponentOptions;
  188. }
  189. export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode<T, U>;
  190. declare const Comment_2: unique symbol;
  191. export { Comment_2 as Comment }
  192. declare type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
  193. MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
  194. };
  195. /* Excluded from this release type: compatUtils */
  196. /**
  197. * @deprecated the default `Vue` export has been removed in Vue 3. The type for
  198. * the default export is provided only for migration purposes. Please use
  199. * named imports instead - e.g. `import { createApp } from 'vue'`.
  200. */
  201. export declare type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
  202. configureCompat: typeof configureCompat;
  203. new (options?: ComponentOptions): LegacyPublicInstance;
  204. version: string;
  205. config: AppConfig & LegacyConfig;
  206. nextTick: typeof nextTick;
  207. use(plugin: Plugin_2, ...options: any[]): CompatVue;
  208. mixin(mixin: ComponentOptions): CompatVue;
  209. component(name: string): Component | undefined;
  210. component(name: string, component: Component): CompatVue;
  211. directive(name: string): Directive | undefined;
  212. directive(name: string, directive: Directive): CompatVue;
  213. compile(template: string): RenderFunction;
  214. /**
  215. * @deprecated Vue 3 no longer supports extending constructors.
  216. */
  217. extend: (options?: ComponentOptions) => CompatVue;
  218. /**
  219. * @deprecated Vue 3 no longer needs set() for adding new properties.
  220. */
  221. set(target: any, key: string | number | symbol, value: any): void;
  222. /**
  223. * @deprecated Vue 3 no longer needs delete() for property deletions.
  224. */
  225. delete(target: any, key: string | number | symbol): void;
  226. /**
  227. * @deprecated use `reactive` instead.
  228. */
  229. observable: typeof reactive;
  230. /**
  231. * @deprecated filters have been removed from Vue 3.
  232. */
  233. filter(name: string, arg?: any): null;
  234. /* Excluded from this release type: cid */
  235. /* Excluded from this release type: options */
  236. /* Excluded from this release type: util */
  237. /* Excluded from this release type: super */
  238. };
  239. declare interface CompiledSlotDescriptor {
  240. name: string;
  241. fn: Slot;
  242. }
  243. /**
  244. * A type used in public APIs where a component type is expected.
  245. * The constructor type is an artificial type returned by defineComponent().
  246. */
  247. export declare type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>;
  248. /**
  249. * Interface for declaring custom options.
  250. *
  251. * @example
  252. * ```ts
  253. * declare module '@vue/runtime-core' {
  254. * interface ComponentCustomOptions {
  255. * beforeRouteUpdate?(
  256. * to: Route,
  257. * from: Route,
  258. * next: () => void
  259. * ): void
  260. * }
  261. * }
  262. * ```
  263. */
  264. export declare interface ComponentCustomOptions {
  265. }
  266. /**
  267. * Custom properties added to component instances in any way and can be accessed through `this`
  268. *
  269. * @example
  270. * Here is an example of adding a property `$router` to every component instance:
  271. * ```ts
  272. * import { createApp } from 'vue'
  273. * import { Router, createRouter } from 'vue-router'
  274. *
  275. * declare module '@vue/runtime-core' {
  276. * interface ComponentCustomProperties {
  277. * $router: Router
  278. * }
  279. * }
  280. *
  281. * // effectively adding the router to every component instance
  282. * const app = createApp({})
  283. * const router = createRouter()
  284. * app.config.globalProperties.$router = router
  285. *
  286. * const vm = app.mount('#app')
  287. * // we can access the router from the instance
  288. * vm.$router.push('/')
  289. * ```
  290. */
  291. export declare interface ComponentCustomProperties {
  292. }
  293. /**
  294. * For extending allowed non-declared props on components in TSX
  295. */
  296. export declare interface ComponentCustomProps {
  297. }
  298. declare type ComponentInjectOptions = string[] | ObjectInjectOptions;
  299. /**
  300. * We expose a subset of properties on the internal instance as they are
  301. * useful for advanced external libraries and tools.
  302. */
  303. export declare interface ComponentInternalInstance {
  304. uid: number;
  305. type: ConcreteComponent;
  306. parent: ComponentInternalInstance | null;
  307. root: ComponentInternalInstance;
  308. appContext: AppContext;
  309. /**
  310. * Vnode representing this component in its parent's vdom tree
  311. */
  312. vnode: VNode;
  313. /* Excluded from this release type: next */
  314. /**
  315. * Root vnode of this component's own vdom tree
  316. */
  317. subTree: VNode;
  318. /**
  319. * Render effect instance
  320. */
  321. effect: ReactiveEffect;
  322. /**
  323. * Bound effect runner to be passed to schedulers
  324. */
  325. update: SchedulerJob;
  326. /* Excluded from this release type: render */
  327. /* Excluded from this release type: ssrRender */
  328. /* Excluded from this release type: provides */
  329. /* Excluded from this release type: scope */
  330. /* Excluded from this release type: accessCache */
  331. /* Excluded from this release type: renderCache */
  332. /* Excluded from this release type: components */
  333. /* Excluded from this release type: directives */
  334. /* Excluded from this release type: filters */
  335. /* Excluded from this release type: propsOptions */
  336. /* Excluded from this release type: emitsOptions */
  337. /* Excluded from this release type: inheritAttrs */
  338. /**
  339. * is custom element?
  340. */
  341. isCE?: boolean;
  342. /**
  343. * custom element specific HMR method
  344. */
  345. ceReload?: (newStyles?: string[]) => void;
  346. proxy: ComponentPublicInstance | null;
  347. exposed: Record<string, any> | null;
  348. exposeProxy: Record<string, any> | null;
  349. /* Excluded from this release type: withProxy */
  350. /* Excluded from this release type: ctx */
  351. data: Data;
  352. props: Data;
  353. attrs: Data;
  354. slots: InternalSlots;
  355. refs: Data;
  356. emit: EmitFn;
  357. /* Excluded from this release type: emitted */
  358. /* Excluded from this release type: propsDefaults */
  359. /* Excluded from this release type: setupState */
  360. /* Excluded from this release type: devtoolsRawSetupState */
  361. /* Excluded from this release type: setupContext */
  362. /* Excluded from this release type: suspense */
  363. /* Excluded from this release type: suspenseId */
  364. /* Excluded from this release type: asyncDep */
  365. /* Excluded from this release type: asyncResolved */
  366. isMounted: boolean;
  367. isUnmounted: boolean;
  368. isDeactivated: boolean;
  369. /* Excluded from this release type: bc */
  370. /* Excluded from this release type: c */
  371. /* Excluded from this release type: bm */
  372. /* Excluded from this release type: m */
  373. /* Excluded from this release type: bu */
  374. /* Excluded from this release type: u */
  375. /* Excluded from this release type: bum */
  376. /* Excluded from this release type: um */
  377. /* Excluded from this release type: rtc */
  378. /* Excluded from this release type: rtg */
  379. /* Excluded from this release type: a */
  380. /* Excluded from this release type: da */
  381. /* Excluded from this release type: ec */
  382. /* Excluded from this release type: sp */
  383. }
  384. declare interface ComponentInternalOptions {
  385. /* Excluded from this release type: __scopeId */
  386. /* Excluded from this release type: __cssModules */
  387. /* Excluded from this release type: __hmrId */
  388. /**
  389. * Compat build only, for bailing out of certain compatibility behavior
  390. */
  391. __isBuiltIn?: boolean;
  392. /**
  393. * This one should be exposed so that devtools can make use of it
  394. */
  395. __file?: string;
  396. }
  397. export declare type ComponentObjectPropsOptions<P = Data> = {
  398. [K in keyof P]: Prop<P[K]> | null;
  399. };
  400. export declare type ComponentOptions<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = any, M extends MethodOptions = any, Mixin extends ComponentOptionsMixin = any, Extends extends ComponentOptionsMixin = any, E extends EmitsOptions = any> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E> & ThisType<CreateComponentPublicInstance<{}, RawBindings, D, C, M, Mixin, Extends, E, Readonly<Props>>>;
  401. export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}> extends LegacyOptions<Props, D, C, M, Mixin, Extends>, ComponentInternalOptions, ComponentCustomOptions {
  402. setup?: (this: void, props: Readonly<LooseRequired<Props & UnionToIntersection<ExtractOptionProp<Mixin>> & UnionToIntersection<ExtractOptionProp<Extends>>>>, ctx: SetupContext<E>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
  403. name?: string;
  404. template?: string | object;
  405. render?: Function;
  406. components?: Record<string, Component>;
  407. directives?: Record<string, Directive>;
  408. inheritAttrs?: boolean;
  409. emits?: (E | EE[]) & ThisType<void>;
  410. expose?: string[];
  411. serverPrefetch?(): Promise<any>;
  412. compilerOptions?: RuntimeCompilerOptions;
  413. /* Excluded from this release type: ssrRender */
  414. /* Excluded from this release type: __ssrInlineRender */
  415. /* Excluded from this release type: __asyncLoader */
  416. /* Excluded from this release type: __asyncResolved */
  417. call?: (this: unknown, ...args: unknown[]) => never;
  418. __isFragment?: never;
  419. __isTeleport?: never;
  420. __isSuspense?: never;
  421. __defaults?: Defaults;
  422. }
  423. export declare type ComponentOptionsMixin = ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>;
  424. export declare type ComponentOptionsWithArrayProps<PropNames extends string = string, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<{
  425. [key in PropNames]?: any;
  426. }> & EmitsToProps<E>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
  427. props: PropNames[];
  428. } & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E>>;
  429. export declare type ComponentOptionsWithObjectProps<PropsOptions = ComponentObjectPropsOptions, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, Props = Readonly<ExtractPropTypes<PropsOptions>> & EmitsToProps<E>, Defaults = ExtractDefaultPropTypes<PropsOptions>> = ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & {
  430. props: PropsOptions & ThisType<void>;
  431. } & ThisType<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, Props, Defaults, false>>;
  432. export declare type ComponentOptionsWithoutProps<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, PE = Props & EmitsToProps<E>> = ComponentOptionsBase<PE, RawBindings, D, C, M, Mixin, Extends, E, EE, {}> & {
  433. props?: undefined;
  434. } & ThisType<CreateComponentPublicInstance<PE, RawBindings, D, C, M, Mixin, Extends, E>>;
  435. export declare type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
  436. export declare type ComponentPublicInstance<P = {}, // props type extracted from props option
  437. B = {}, // raw bindings returned from setup()
  438. D = {}, // return from data()
  439. C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>> = {
  440. $: ComponentInternalInstance;
  441. $data: D;
  442. $props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<P & PublicProps, keyof Defaults> : P & PublicProps;
  443. $attrs: Data;
  444. $refs: Data;
  445. $slots: Slots;
  446. $root: ComponentPublicInstance | null;
  447. $parent: ComponentPublicInstance | null;
  448. $emit: EmitFn<E>;
  449. $el: any;
  450. $options: Options & MergedComponentOptionsOverride;
  451. $forceUpdate: () => void;
  452. $nextTick: typeof nextTick;
  453. $watch(source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle;
  454. } & P & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties;
  455. declare type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
  456. __isFragment?: never;
  457. __isTeleport?: never;
  458. __isSuspense?: never;
  459. new (...args: any[]): T;
  460. };
  461. declare type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
  462. declare type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
  463. export declare const computed: typeof computed_2;
  464. export { ComputedGetter }
  465. export declare type ComputedOptions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
  466. export { ComputedRef }
  467. export { ComputedSetter }
  468. /**
  469. * Concrete component type matches its actual value: it's either an options
  470. * object, or a function. Use this where the code expects to work with actual
  471. * values, e.g. checking if its a function or not. This is mostly for internal
  472. * implementation code.
  473. */
  474. export declare type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>;
  475. declare function configureCompat(config: CompatConfig): void;
  476. declare interface Constructor<P = any> {
  477. __isFragment?: never;
  478. __isTeleport?: never;
  479. __isSuspense?: never;
  480. new (...args: any[]): {
  481. $props: P;
  482. };
  483. }
  484. export declare type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
  485. /**
  486. * Create a block root vnode. Takes the same exact arguments as `createVNode`.
  487. * A block root keeps track of dynamic nodes within the block in the
  488. * `dynamicChildren` array.
  489. *
  490. * @private
  491. */
  492. export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
  493. /**
  494. * @private
  495. */
  496. export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
  497. declare function createCompatVue(createApp: CreateAppFunction<Element>, createSingletonApp: CreateAppFunction<Element>): CompatVue;
  498. declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
  499. export declare type CreateComponentPublicInstance<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults>>;
  500. /**
  501. * @private
  502. */
  503. export declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode<RendererNode, RendererElement, {
  504. [key: string]: any;
  505. }>;
  506. export declare function createElementVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number | ShapeFlags, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {
  507. [key: string]: any;
  508. }>;
  509. export declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
  510. /* Excluded from this release type: createPropsRestProxy */
  511. declare function createRecord(id: string, initialDef: HMRComponent): boolean;
  512. /**
  513. * The createRenderer function accepts two generic arguments:
  514. * HostNode and HostElement, corresponding to Node and Element types in the
  515. * host environment. For example, for runtime-dom, HostNode would be the DOM
  516. * `Node` interface and HostElement would be the DOM `Element` interface.
  517. *
  518. * Custom renderers can pass in the platform specific types like this:
  519. *
  520. * ``` js
  521. * const { render, createApp } = createRenderer<Node, Element>({
  522. * patchProp,
  523. * ...nodeOps
  524. * })
  525. * ```
  526. */
  527. export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
  528. /**
  529. * Compiler runtime helper for creating dynamic slots object
  530. * @private
  531. */
  532. export declare function createSlots(slots: Record<string, Slot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, Slot>;
  533. /**
  534. * @private
  535. */
  536. export declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
  537. declare function createSuspenseBoundary(vnode: VNode, parent: SuspenseBoundary | null, parentComponent: ComponentInternalInstance | null, container: RendererElement, hiddenContainer: RendererElement, anchor: RendererNode | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, isHydrating?: boolean): SuspenseBoundary;
  538. /**
  539. * @private
  540. */
  541. export declare function createTextVNode(text?: string, flag?: number): VNode;
  542. export declare const createVNode: typeof _createVNode;
  543. declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode;
  544. export { customRef }
  545. export { CustomRefFactory }
  546. declare type Data = Record<string, unknown>;
  547. export { DebuggerEvent }
  548. export { DebuggerEventExtraInfo }
  549. declare type DebuggerHook = (e: DebuggerEvent) => void;
  550. export { DebuggerOptions }
  551. export { DeepReadonly }
  552. declare type DefaultFactory<T> = (props: Data) => T | null | undefined;
  553. declare type DefaultKeys<T> = {
  554. [K in keyof T]: T[K] extends {
  555. default: any;
  556. } | BooleanConstructor | {
  557. type: BooleanConstructor;
  558. } ? T[K] extends {
  559. type: BooleanConstructor;
  560. required: true;
  561. } ? never : K : never;
  562. }[keyof T];
  563. export declare function defineAsyncComponent<T extends Component = {
  564. new (): ComponentPublicInstance;
  565. }>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
  566. export declare type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>), Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>> = ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, true> & Props> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & PP;
  567. export declare function defineComponent<Props, RawBindings = object>(setup: (props: Readonly<Props>, ctx: SetupContext) => RawBindings | RenderFunction): DefineComponent<Props, RawBindings>;
  568. export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>;
  569. export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<Readonly<{
  570. [key in PropNames]?: any;
  571. }>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
  572. export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = Record<string, any>, EE extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
  573. /**
  574. * Vue `<script setup>` compiler macro for declaring a component's emitted
  575. * events. The expected argument is the same as the component `emits` option.
  576. *
  577. * Example runtime declaration:
  578. * ```js
  579. * const emit = defineEmits(['change', 'update'])
  580. * ```
  581. *
  582. * Example type-based declaration:
  583. * ```ts
  584. * const emit = defineEmits<{
  585. * (event: 'change'): void
  586. * (event: 'update', id: number): void
  587. * }>()
  588. *
  589. * emit('change')
  590. * emit('update', 1)
  591. * ```
  592. *
  593. * This is only usable inside `<script setup>`, is compiled away in the
  594. * output and should **not** be actually called at runtime.
  595. */
  596. export declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
  597. export declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
  598. export declare function defineEmits<TypeEmit>(): TypeEmit;
  599. /**
  600. * Vue `<script setup>` compiler macro for declaring a component's exposed
  601. * instance properties when it is accessed by a parent component via template
  602. * refs.
  603. *
  604. * `<script setup>` components are closed by default - i.e. variables inside
  605. * the `<script setup>` scope is not exposed to parent unless explicitly exposed
  606. * via `defineExpose`.
  607. *
  608. * This is only usable inside `<script setup>`, is compiled away in the
  609. * output and should **not** be actually called at runtime.
  610. */
  611. export declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
  612. /**
  613. * Vue `<script setup>` compiler macro for declaring component props. The
  614. * expected argument is the same as the component `props` option.
  615. *
  616. * Example runtime declaration:
  617. * ```js
  618. * // using Array syntax
  619. * const props = defineProps(['foo', 'bar'])
  620. * // using Object syntax
  621. * const props = defineProps({
  622. * foo: String,
  623. * bar: {
  624. * type: Number,
  625. * required: true
  626. * }
  627. * })
  628. * ```
  629. *
  630. * Equivalent type-based declaration:
  631. * ```ts
  632. * // will be compiled into equivalent runtime declarations
  633. * const props = defineProps<{
  634. * foo?: string
  635. * bar: number
  636. * }>()
  637. * ```
  638. *
  639. * This is only usable inside `<script setup>`, is compiled away in the
  640. * output and should **not** be actually called at runtime.
  641. */
  642. export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Readonly<{
  643. [key in PropNames]?: any;
  644. }>;
  645. export declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Readonly<ExtractPropTypes<PP>>;
  646. export declare function defineProps<TypeProps>(): Readonly<TypeProps>;
  647. export declare const enum DeprecationTypes {
  648. GLOBAL_MOUNT = "GLOBAL_MOUNT",
  649. GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
  650. GLOBAL_EXTEND = "GLOBAL_EXTEND",
  651. GLOBAL_PROTOTYPE = "GLOBAL_PROTOTYPE",
  652. GLOBAL_SET = "GLOBAL_SET",
  653. GLOBAL_DELETE = "GLOBAL_DELETE",
  654. GLOBAL_OBSERVABLE = "GLOBAL_OBSERVABLE",
  655. GLOBAL_PRIVATE_UTIL = "GLOBAL_PRIVATE_UTIL",
  656. CONFIG_SILENT = "CONFIG_SILENT",
  657. CONFIG_DEVTOOLS = "CONFIG_DEVTOOLS",
  658. CONFIG_KEY_CODES = "CONFIG_KEY_CODES",
  659. CONFIG_PRODUCTION_TIP = "CONFIG_PRODUCTION_TIP",
  660. CONFIG_IGNORED_ELEMENTS = "CONFIG_IGNORED_ELEMENTS",
  661. CONFIG_WHITESPACE = "CONFIG_WHITESPACE",
  662. CONFIG_OPTION_MERGE_STRATS = "CONFIG_OPTION_MERGE_STRATS",
  663. INSTANCE_SET = "INSTANCE_SET",
  664. INSTANCE_DELETE = "INSTANCE_DELETE",
  665. INSTANCE_DESTROY = "INSTANCE_DESTROY",
  666. INSTANCE_EVENT_EMITTER = "INSTANCE_EVENT_EMITTER",
  667. INSTANCE_EVENT_HOOKS = "INSTANCE_EVENT_HOOKS",
  668. INSTANCE_CHILDREN = "INSTANCE_CHILDREN",
  669. INSTANCE_LISTENERS = "INSTANCE_LISTENERS",
  670. INSTANCE_SCOPED_SLOTS = "INSTANCE_SCOPED_SLOTS",
  671. INSTANCE_ATTRS_CLASS_STYLE = "INSTANCE_ATTRS_CLASS_STYLE",
  672. OPTIONS_DATA_FN = "OPTIONS_DATA_FN",
  673. OPTIONS_DATA_MERGE = "OPTIONS_DATA_MERGE",
  674. OPTIONS_BEFORE_DESTROY = "OPTIONS_BEFORE_DESTROY",
  675. OPTIONS_DESTROYED = "OPTIONS_DESTROYED",
  676. WATCH_ARRAY = "WATCH_ARRAY",
  677. PROPS_DEFAULT_THIS = "PROPS_DEFAULT_THIS",
  678. V_ON_KEYCODE_MODIFIER = "V_ON_KEYCODE_MODIFIER",
  679. CUSTOM_DIR = "CUSTOM_DIR",
  680. ATTR_FALSE_VALUE = "ATTR_FALSE_VALUE",
  681. ATTR_ENUMERATED_COERCION = "ATTR_ENUMERATED_COERCION",
  682. TRANSITION_CLASSES = "TRANSITION_CLASSES",
  683. TRANSITION_GROUP_ROOT = "TRANSITION_GROUP_ROOT",
  684. COMPONENT_ASYNC = "COMPONENT_ASYNC",
  685. COMPONENT_FUNCTIONAL = "COMPONENT_FUNCTIONAL",
  686. COMPONENT_V_MODEL = "COMPONENT_V_MODEL",
  687. RENDER_FUNCTION = "RENDER_FUNCTION",
  688. FILTERS = "FILTERS",
  689. PRIVATE_APIS = "PRIVATE_APIS"
  690. }
  691. export declare let devtools: DevtoolsHook;
  692. declare interface DevtoolsHook {
  693. enabled?: boolean;
  694. emit: (event: string, ...payload: any[]) => void;
  695. on: (event: string, handler: Function) => void;
  696. once: (event: string, handler: Function) => void;
  697. off: (event: string, handler: Function) => void;
  698. appRecords: AppRecord[];
  699. }
  700. export declare type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>;
  701. export declare type DirectiveArguments = Array<[Directive] | [Directive, any] | [Directive, any, string] | [Directive, any, string, DirectiveModifiers]>;
  702. export declare interface DirectiveBinding<V = any> {
  703. instance: ComponentPublicInstance | null;
  704. value: V;
  705. oldValue: V | null;
  706. arg?: string;
  707. modifiers: DirectiveModifiers;
  708. dir: ObjectDirective<any, V>;
  709. }
  710. export declare type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode<any, T>, prevVNode: Prev) => void;
  711. declare type DirectiveModifiers = Record<string, boolean>;
  712. export { effect }
  713. export { EffectScheduler }
  714. export { EffectScope }
  715. export { effectScope }
  716. declare type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
  717. [key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
  718. }[Event]>;
  719. export declare type EmitsOptions = ObjectEmitsOptions | string[];
  720. declare type EmitsToProps<T extends EmitsOptions> = T extends string[] ? {
  721. [K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
  722. } : T extends ObjectEmitsOptions ? {
  723. [K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never;
  724. } : {};
  725. declare type EnsureNonVoid<T> = T extends void ? {} : T;
  726. declare type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
  727. export declare const enum ErrorCodes {
  728. SETUP_FUNCTION = 0,
  729. RENDER_FUNCTION = 1,
  730. WATCH_GETTER = 2,
  731. WATCH_CALLBACK = 3,
  732. WATCH_CLEANUP = 4,
  733. NATIVE_EVENT_HANDLER = 5,
  734. COMPONENT_EVENT_HANDLER = 6,
  735. VNODE_HOOK = 7,
  736. DIRECTIVE_HOOK = 8,
  737. TRANSITION_HOOK = 9,
  738. APP_ERROR_HANDLER = 10,
  739. APP_WARN_HANDLER = 11,
  740. FUNCTION_REF = 12,
  741. ASYNC_COMPONENT_LOADER = 13,
  742. SCHEDULER = 14
  743. }
  744. declare type ErrorTypes = LifecycleHooks | ErrorCodes;
  745. declare type ExtractComputedReturns<T extends any> = {
  746. [key in keyof T]: T[key] extends {
  747. get: (...args: any[]) => infer TReturn;
  748. } ? TReturn : T[key] extends (...args: any[]) => infer TReturn ? TReturn : never;
  749. };
  750. export declare type ExtractDefaultPropTypes<O> = O extends object ? {
  751. [K in DefaultKeys<O>]: InferPropType<O[K]>;
  752. } : {};
  753. declare type ExtractMixin<T> = {
  754. Mixin: MixinToOptionTypes<T>;
  755. }[T extends ComponentOptionsMixin ? 'Mixin' : never];
  756. declare type ExtractOptionProp<T> = T extends ComponentOptionsBase<infer P, // Props
  757. any, // RawBindings
  758. any, // D
  759. any, // C
  760. any, // M
  761. any, // Mixin
  762. any, // Extends
  763. any> ? unknown extends P ? {} : P : {};
  764. export declare type ExtractPropTypes<O> = {
  765. [K in keyof Pick<O, RequiredKeys<O>>]: InferPropType<O[K]>;
  766. } & {
  767. [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>;
  768. };
  769. export declare const Fragment: {
  770. new (): {
  771. $props: VNodeProps;
  772. };
  773. __isFragment: true;
  774. };
  775. export declare interface FunctionalComponent<P = {}, E extends EmitsOptions = {}> extends ComponentInternalOptions {
  776. (props: P, ctx: Omit<SetupContext<E>, 'expose'>): any;
  777. props?: ComponentPropsOptions<P>;
  778. emits?: E | (keyof E)[];
  779. inheritAttrs?: boolean;
  780. displayName?: string;
  781. compatConfig?: CompatConfig;
  782. }
  783. export declare type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>;
  784. export declare const getCurrentInstance: () => ComponentInternalInstance | null;
  785. export { getCurrentScope }
  786. export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
  787. export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
  788. export declare function h(type: string, children?: RawChildren): VNode;
  789. export declare function h(type: string, props?: RawProps | null, children?: RawChildren | RawSlots): VNode;
  790. export declare function h(type: typeof Text_2 | typeof Comment_2, children?: string | number | boolean): VNode;
  791. export declare function h(type: typeof Text_2 | typeof Comment_2, props?: null, children?: string | number | boolean): VNode;
  792. export declare function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode;
  793. export declare function h(type: typeof Fragment, props?: RawProps | null, children?: VNodeArrayChildren): VNode;
  794. export declare function h(type: typeof Teleport, props: RawProps & TeleportProps, children: RawChildren): VNode;
  795. export declare function h(type: typeof Suspense, children?: RawChildren): VNode;
  796. export declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): VNode;
  797. export declare function h<P, E extends EmitsOptions = {}>(type: FunctionalComponent<P, E>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
  798. export declare function h(type: Component, children?: RawChildren): VNode;
  799. export declare function h<P>(type: ConcreteComponent | string, children?: RawChildren): VNode;
  800. export declare function h<P>(type: ConcreteComponent<P> | string, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren): VNode;
  801. export declare function h(type: Component, props: null, children?: RawChildren | RawSlots): VNode;
  802. export declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
  803. export declare function h(type: Constructor, children?: RawChildren): VNode;
  804. export declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
  805. export declare function h(type: DefineComponent, children?: RawChildren): VNode;
  806. export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
  807. export declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes, throwInDev?: boolean): void;
  808. declare type HMRComponent = ComponentOptions | ClassComponent;
  809. export declare interface HMRRuntime {
  810. createRecord: typeof createRecord;
  811. rerender: typeof rerender;
  812. reload: typeof reload;
  813. }
  814. declare function hydrateSuspense(node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals, hydrateNode: (node: Node, vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
  815. declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
  816. export declare interface HydrationRenderer extends Renderer<Element | ShadowRoot> {
  817. hydrate: RootHydrateFunction;
  818. }
  819. declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T : (props: P) => T;
  820. declare type InferDefaults<T> = {
  821. [K in keyof T]?: InferDefault<T, NotUndefined<T[K]>>;
  822. };
  823. declare type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
  824. type: null | true;
  825. }] ? any : [T] extends [ObjectConstructor | {
  826. type: ObjectConstructor;
  827. }] ? Record<string, any> : [T] extends [BooleanConstructor | {
  828. type: BooleanConstructor;
  829. }] ? boolean : [T] extends [DateConstructor | {
  830. type: DateConstructor;
  831. }] ? Date : [T] extends [(infer U)[] | {
  832. type: (infer U)[];
  833. }] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
  834. export declare function initCustomFormatter(): void;
  835. export declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
  836. export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
  837. export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
  838. export declare interface InjectionKey<T> extends Symbol {
  839. }
  840. /* Excluded from this release type: InternalRenderFunction */
  841. declare type InternalSlots = {
  842. [name: string]: Slot | undefined;
  843. };
  844. declare type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType<{}, {}, {}, {}, {}> : UnionToIntersection<ExtractMixin<T>>;
  845. declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
  846. declare type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
  847. export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
  848. export { isProxy }
  849. export { isReactive }
  850. export { isReadonly }
  851. export { isRef }
  852. export declare const isRuntimeOnly: () => boolean;
  853. export { isShallow }
  854. export declare function isVNode(value: any): value is VNode;
  855. export declare const KeepAlive: {
  856. new (): {
  857. $props: VNodeProps & KeepAliveProps;
  858. };
  859. __isKeepAlive: true;
  860. };
  861. export declare interface KeepAliveProps {
  862. include?: MatchPattern;
  863. exclude?: MatchPattern;
  864. max?: number | string;
  865. }
  866. export declare type LegacyConfig = {
  867. /**
  868. * @deprecated `config.silent` option has been removed
  869. */
  870. silent?: boolean;
  871. /**
  872. * @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
  873. * https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
  874. */
  875. devtools?: boolean;
  876. /**
  877. * @deprecated use `config.isCustomElement` instead
  878. * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-ignoredelements-is-now-config-iscustomelement
  879. */
  880. ignoredElements?: (string | RegExp)[];
  881. /**
  882. * @deprecated
  883. * https://v3-migration.vuejs.org/breaking-changes/keycode-modifiers.html
  884. */
  885. keyCodes?: Record<string, number | number[]>;
  886. /**
  887. * @deprecated
  888. * https://v3-migration.vuejs.org/breaking-changes/global-api.html#config-productiontip-removed
  889. */
  890. productionTip?: boolean;
  891. };
  892. declare interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin> {
  893. compatConfig?: CompatConfig;
  894. [key: string]: any;
  895. data?: (this: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
  896. computed?: C;
  897. methods?: M;
  898. watch?: ComponentWatchOptions;
  899. provide?: Data | Function;
  900. inject?: ComponentInjectOptions;
  901. filters?: Record<string, Function>;
  902. mixins?: Mixin[];
  903. extends?: Extends;
  904. beforeCreate?(): void;
  905. created?(): void;
  906. beforeMount?(): void;
  907. mounted?(): void;
  908. beforeUpdate?(): void;
  909. updated?(): void;
  910. activated?(): void;
  911. deactivated?(): void;
  912. /** @deprecated use `beforeUnmount` instead */
  913. beforeDestroy?(): void;
  914. beforeUnmount?(): void;
  915. /** @deprecated use `unmounted` instead */
  916. destroyed?(): void;
  917. unmounted?(): void;
  918. renderTracked?: DebuggerHook;
  919. renderTriggered?: DebuggerHook;
  920. errorCaptured?: ErrorCapturedHook;
  921. /**
  922. * runtime compile only
  923. * @deprecated use `compilerOptions.delimiters` instead.
  924. */
  925. delimiters?: [string, string];
  926. /**
  927. * #3468
  928. *
  929. * type-only, used to assist Mixin's type inference,
  930. * typescript will try to simplify the inferred `Mixin` type,
  931. * with the `__differenciator`, typescript won't be able to combine different mixins,
  932. * because the `__differenciator` will be different
  933. */
  934. __differentiator?: keyof D | keyof C | keyof M;
  935. }
  936. declare type LegacyPublicInstance = ComponentPublicInstance & LegacyPublicProperties;
  937. declare interface LegacyPublicProperties {
  938. $set(target: object, key: string, value: any): void;
  939. $delete(target: object, key: string): void;
  940. $mount(el?: string | Element): this;
  941. $destroy(): void;
  942. $scopedSlots: Slots;
  943. $on(event: string | string[], fn: Function): this;
  944. $once(event: string, fn: Function): this;
  945. $off(event?: string | string[], fn?: Function): this;
  946. $children: LegacyPublicProperties[];
  947. $listeners: Record<string, Function | Function[]>;
  948. }
  949. declare type LifecycleHook<TFn = Function> = TFn[] | null;
  950. declare const enum LifecycleHooks {
  951. BEFORE_CREATE = "bc",
  952. CREATED = "c",
  953. BEFORE_MOUNT = "bm",
  954. MOUNTED = "m",
  955. BEFORE_UPDATE = "bu",
  956. UPDATED = "u",
  957. BEFORE_UNMOUNT = "bum",
  958. UNMOUNTED = "um",
  959. DEACTIVATED = "da",
  960. ACTIVATED = "a",
  961. RENDER_TRIGGERED = "rtg",
  962. RENDER_TRACKED = "rtc",
  963. ERROR_CAPTURED = "ec",
  964. SERVER_PREFETCH = "sp"
  965. }
  966. declare type MapSources<T, Immediate> = {
  967. [K in keyof T]: T[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : T[K] extends object ? Immediate extends true ? T[K] | undefined : T[K] : never;
  968. };
  969. export { markRaw }
  970. declare type MatchPattern = string | RegExp | (string | RegExp)[];
  971. declare type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
  972. declare type MergedComponentOptionsOverride = {
  973. beforeCreate?: MergedHook;
  974. created?: MergedHook;
  975. beforeMount?: MergedHook;
  976. mounted?: MergedHook;
  977. beforeUpdate?: MergedHook;
  978. updated?: MergedHook;
  979. activated?: MergedHook;
  980. deactivated?: MergedHook;
  981. /** @deprecated use `beforeUnmount` instead */
  982. beforeDestroy?: MergedHook;
  983. beforeUnmount?: MergedHook;
  984. /** @deprecated use `unmounted` instead */
  985. destroyed?: MergedHook;
  986. unmounted?: MergedHook;
  987. renderTracked?: MergedHook<DebuggerHook>;
  988. renderTriggered?: MergedHook<DebuggerHook>;
  989. errorCaptured?: MergedHook<ErrorCapturedHook>;
  990. };
  991. /* Excluded from this release type: mergeDefaults */
  992. declare type MergedHook<T = () => void> = T | T[];
  993. export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
  994. export declare interface MethodOptions {
  995. [key: string]: Function;
  996. }
  997. declare type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
  998. declare type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
  999. declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
  1000. declare type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
  1001. declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
  1002. declare const enum MoveType {
  1003. ENTER = 0,
  1004. LEAVE = 1,
  1005. REORDER = 2
  1006. }
  1007. declare type MultiWatchSources = (WatchSource<unknown> | object)[];
  1008. declare type NextFn = (vnode: VNode) => RendererNode | null;
  1009. export declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
  1010. export { normalizeClass }
  1011. declare type NormalizedProp = null | (PropOptions & {
  1012. [BooleanFlags.shouldCast]?: boolean;
  1013. [BooleanFlags.shouldCastTrue]?: boolean;
  1014. });
  1015. declare type NormalizedProps = Record<string, NormalizedProp>;
  1016. declare type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
  1017. export { normalizeProps }
  1018. export { normalizeStyle }
  1019. declare function normalizeSuspenseChildren(vnode: VNode): void;
  1020. declare function normalizeVNode(child: VNodeChild): VNode;
  1021. declare type NotUndefined<T> = T extends undefined ? never : T;
  1022. declare const NULL_DYNAMIC_COMPONENT: unique symbol;
  1023. export declare interface ObjectDirective<T = any, V = any> {
  1024. created?: DirectiveHook<T, null, V>;
  1025. beforeMount?: DirectiveHook<T, null, V>;
  1026. mounted?: DirectiveHook<T, null, V>;
  1027. beforeUpdate?: DirectiveHook<T, VNode<any, T>, V>;
  1028. updated?: DirectiveHook<T, VNode<any, T>, V>;
  1029. beforeUnmount?: DirectiveHook<T, null, V>;
  1030. unmounted?: DirectiveHook<T, null, V>;
  1031. getSSRProps?: SSRDirectiveHook;
  1032. deep?: boolean;
  1033. }
  1034. export declare type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
  1035. declare type ObjectInjectOptions = Record<string | symbol, string | symbol | {
  1036. from?: string | symbol;
  1037. default?: unknown;
  1038. }>;
  1039. declare type ObjectWatchOptionItem = {
  1040. handler: WatchCallback | string;
  1041. } & WatchOptions;
  1042. export declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
  1043. export declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1044. export declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1045. export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1046. declare type OnCleanup = (cleanupFn: () => void) => void;
  1047. export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
  1048. export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
  1049. export declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1050. export declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1051. export declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1052. export { onScopeDispose }
  1053. export declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1054. export declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1055. export declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
  1056. /**
  1057. * Open a block.
  1058. * This must be called before `createBlock`. It cannot be part of `createBlock`
  1059. * because the children of the block are evaluated before `createBlock` itself
  1060. * is called. The generated code typically looks like this:
  1061. *
  1062. * ```js
  1063. * function render() {
  1064. * return (openBlock(),createBlock('div', null, [...]))
  1065. * }
  1066. * ```
  1067. * disableTracking is true when creating a v-for fragment block, since a v-for
  1068. * fragment always diffs its children.
  1069. *
  1070. * @private
  1071. */
  1072. export declare function openBlock(disableTracking?: boolean): void;
  1073. declare type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
  1074. export declare type OptionMergeFunction = (to: unknown, from: unknown) => any;
  1075. declare type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
  1076. declare type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
  1077. P: P;
  1078. B: B;
  1079. D: D;
  1080. C: C;
  1081. M: M;
  1082. Defaults: Defaults;
  1083. };
  1084. declare type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
  1085. declare type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
  1086. declare type PatchFn = (n1: VNode | null, // null means this is a mount
  1087. n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
  1088. declare type Plugin_2 = (PluginInstallFunction & {
  1089. install?: PluginInstallFunction;
  1090. }) | {
  1091. install: PluginInstallFunction;
  1092. };
  1093. export { Plugin_2 as Plugin }
  1094. declare type PluginInstallFunction = (app: App, ...options: any[]) => any;
  1095. /**
  1096. * Technically we no longer need this after 3.0.8 but we need to keep the same
  1097. * API for backwards compat w/ code generated by compilers.
  1098. * @private
  1099. */
  1100. export declare function popScopeId(): void;
  1101. export declare type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
  1102. declare type PropConstructor<T = any> = {
  1103. new (...args: any[]): T & {};
  1104. } | {
  1105. (): T;
  1106. } | PropMethod<T>;
  1107. declare type PropMethod<T, TConstructor = any> = [T] extends [
  1108. ((...args: any) => any) | undefined
  1109. ] ? {
  1110. new (): TConstructor;
  1111. (): T;
  1112. readonly prototype: TConstructor;
  1113. } : never;
  1114. declare interface PropOptions<T = any, D = T> {
  1115. type?: PropType<T> | true | null;
  1116. required?: boolean;
  1117. default?: D | DefaultFactory<D> | null | undefined | object;
  1118. validator?(value: unknown): boolean;
  1119. }
  1120. declare type PropsWithDefaults<Base, Defaults> = Base & {
  1121. [K in keyof Defaults]: K extends keyof Base ? NotUndefined<Base[K]> : never;
  1122. };
  1123. export declare type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
  1124. export declare function provide<T>(key: InjectionKey<T> | string | number, value: T): void;
  1125. export { proxyRefs }
  1126. declare type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
  1127. /**
  1128. * Set scope id when creating hoisted vnodes.
  1129. * @private compiler helper
  1130. */
  1131. export declare function pushScopeId(id: string | null): void;
  1132. export declare function queuePostFlushCb(cb: SchedulerJobs): void;
  1133. declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
  1134. declare type RawProps = VNodeProps & {
  1135. __v_isVNode?: never;
  1136. [Symbol.iterator]?: never;
  1137. } & Record<string, any>;
  1138. declare type RawSlots = {
  1139. [name: string]: unknown;
  1140. $stable?: boolean;
  1141. /* Excluded from this release type: _ctx */
  1142. /* Excluded from this release type: _ */
  1143. };
  1144. export { reactive }
  1145. export { ReactiveEffect }
  1146. export { ReactiveEffectOptions }
  1147. export { ReactiveEffectRunner }
  1148. export { ReactiveFlags }
  1149. export { readonly }
  1150. export { Ref }
  1151. export { ref }
  1152. /**
  1153. * For runtime-dom to register the compiler.
  1154. * Note the exported method uses any to avoid d.ts relying on the compiler types.
  1155. */
  1156. export declare function registerRuntimeCompiler(_compile: any): void;
  1157. declare function reload(id: string, newComp: HMRComponent): void;
  1158. declare type RemoveFn = (vnode: VNode) => void;
  1159. declare function renderComponentRoot(instance: ComponentInternalInstance): VNode;
  1160. export declare interface Renderer<HostElement = RendererElement> {
  1161. render: RootRenderFunction<HostElement>;
  1162. createApp: CreateAppFunction<HostElement>;
  1163. }
  1164. export declare interface RendererElement extends RendererNode {
  1165. }
  1166. declare interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
  1167. p: PatchFn;
  1168. um: UnmountFn;
  1169. r: RemoveFn;
  1170. m: MoveFn;
  1171. mt: MountComponentFn;
  1172. mc: MountChildrenFn;
  1173. pc: PatchChildrenFn;
  1174. pbc: PatchBlockChildrenFn;
  1175. n: NextFn;
  1176. o: RendererOptions<HostNode, HostElement>;
  1177. }
  1178. export declare interface RendererNode {
  1179. [key: string]: any;
  1180. }
  1181. export declare interface RendererOptions<HostNode = RendererNode, HostElement = RendererElement> {
  1182. patchProp(el: HostElement, key: string, prevValue: any, nextValue: any, isSVG?: boolean, prevChildren?: VNode<HostNode, HostElement>[], parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, unmountChildren?: UnmountChildrenFn): void;
  1183. insert(el: HostNode, parent: HostElement, anchor?: HostNode | null): void;
  1184. remove(el: HostNode): void;
  1185. createElement(type: string, isSVG?: boolean, isCustomizedBuiltIn?: string, vnodeProps?: (VNodeProps & {
  1186. [key: string]: any;
  1187. }) | null): HostElement;
  1188. createText(text: string): HostNode;
  1189. createComment(text: string): HostNode;
  1190. setText(node: HostNode, text: string): void;
  1191. setElementText(node: HostElement, text: string): void;
  1192. parentNode(node: HostNode): HostElement | null;
  1193. nextSibling(node: HostNode): HostNode | null;
  1194. querySelector?(selector: string): HostElement | null;
  1195. setScopeId?(el: HostElement, id: string): void;
  1196. cloneNode?(node: HostNode): HostNode;
  1197. insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
  1198. }
  1199. export declare type RenderFunction = () => VNodeChild;
  1200. /**
  1201. * v-for string
  1202. * @private
  1203. */
  1204. export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
  1205. /**
  1206. * v-for number
  1207. */
  1208. export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
  1209. /**
  1210. * v-for array
  1211. */
  1212. export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
  1213. /**
  1214. * v-for iterable
  1215. */
  1216. export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
  1217. /**
  1218. * v-for object
  1219. */
  1220. export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: K, index: number) => VNodeChild): VNodeChild[];
  1221. /**
  1222. * Compiler runtime helper for rendering `<slot/>`
  1223. * @private
  1224. */
  1225. export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
  1226. declare type RequiredKeys<T> = {
  1227. [K in keyof T]: T[K] extends {
  1228. required: true;
  1229. } | {
  1230. default: any;
  1231. } | BooleanConstructor | {
  1232. type: BooleanConstructor;
  1233. } ? T[K] extends {
  1234. default: undefined | (() => undefined);
  1235. } ? never : K : never;
  1236. }[keyof T];
  1237. declare function rerender(id: string, newRender?: Function): void;
  1238. /**
  1239. * @private
  1240. */
  1241. export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
  1242. /**
  1243. * @private
  1244. */
  1245. export declare function resolveDirective(name: string): Directive | undefined;
  1246. /**
  1247. * @private
  1248. */
  1249. export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
  1250. /* Excluded from this release type: resolveFilter */
  1251. /* Excluded from this release type: resolveFilter_2 */
  1252. export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
  1253. export declare type RootHydrateFunction = (vnode: VNode<Node, Element>, container: Element | ShadowRoot) => void;
  1254. export declare type RootRenderFunction<HostElement = RendererElement> = (vnode: VNode | null, container: HostElement, isSVG?: boolean) => void;
  1255. /**
  1256. * Subset of compiler options that makes sense for the runtime.
  1257. */
  1258. export declare interface RuntimeCompilerOptions {
  1259. isCustomElement?: (tag: string) => boolean;
  1260. whitespace?: 'preserve' | 'condense';
  1261. comments?: boolean;
  1262. delimiters?: [string, string];
  1263. }
  1264. declare interface SchedulerJob extends Function {
  1265. id?: number;
  1266. active?: boolean;
  1267. computed?: boolean;
  1268. /**
  1269. * Indicates whether the effect is allowed to recursively trigger itself
  1270. * when managed by the scheduler.
  1271. *
  1272. * By default, a job cannot trigger itself because some built-in method calls,
  1273. * e.g. Array.prototype.push actually performs reads as well (#1740) which
  1274. * can lead to confusing infinite loops.
  1275. * The allowed cases are component update functions and watch callbacks.
  1276. * Component update functions may update child component props, which in turn
  1277. * trigger flush: "pre" watch callbacks that mutates state that the parent
  1278. * relies on (#1801). Watch callbacks doesn't track its dependencies so if it
  1279. * triggers itself again, it's likely intentional and it is the user's
  1280. * responsibility to perform recursive state mutation that eventually
  1281. * stabilizes (#1727).
  1282. */
  1283. allowRecurse?: boolean;
  1284. /**
  1285. * Attached by renderer.ts when setting up a component's render effect
  1286. * Used to obtain component information when reporting max recursive updates.
  1287. * dev only.
  1288. */
  1289. ownerInstance?: ComponentInternalInstance;
  1290. }
  1291. declare type SchedulerJobs = SchedulerJob | SchedulerJob[];
  1292. /**
  1293. * Block tracking sometimes needs to be disabled, for example during the
  1294. * creation of a tree that needs to be cached by v-once. The compiler generates
  1295. * code like this:
  1296. *
  1297. * ``` js
  1298. * _cache[1] || (
  1299. * setBlockTracking(-1),
  1300. * _cache[1] = createVNode(...),
  1301. * setBlockTracking(1),
  1302. * _cache[1]
  1303. * )
  1304. * ```
  1305. *
  1306. * @private
  1307. */
  1308. export declare function setBlockTracking(value: number): void;
  1309. /**
  1310. * Note: rendering calls maybe nested. The function returns the parent rendering
  1311. * instance if present, which should be restored after the render is done:
  1312. *
  1313. * ```js
  1314. * const prev = setCurrentRenderingInstance(i)
  1315. * // ...render
  1316. * setCurrentRenderingInstance(prev)
  1317. * ```
  1318. */
  1319. declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): ComponentInternalInstance | null;
  1320. export declare function setDevtoolsHook(hook: DevtoolsHook, target: any): void;
  1321. export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
  1322. declare function setupComponent(instance: ComponentInternalInstance, isSSR?: boolean): Promise<void> | undefined;
  1323. export declare interface SetupContext<E = EmitsOptions> {
  1324. attrs: Data;
  1325. slots: Slots;
  1326. emit: EmitFn<E>;
  1327. expose: (exposed?: Record<string, any>) => void;
  1328. }
  1329. declare type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
  1330. export { ShallowReactive }
  1331. export { shallowReactive }
  1332. export { shallowReadonly }
  1333. export { ShallowRef }
  1334. export { shallowRef }
  1335. export { ShallowUnwrapRef }
  1336. export declare type Slot = (...args: any[]) => VNode[];
  1337. export declare type Slots = Readonly<InternalSlots>;
  1338. /**
  1339. * Use this for features where legacy usage is still possible, but will likely
  1340. * lead to runtime error if compat is disabled. (warn in all cases)
  1341. */
  1342. declare function softAssertCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
  1343. export declare const ssrContextKey: unique symbol;
  1344. declare type SSRDirectiveHook = (binding: DirectiveBinding, vnode: VNode) => Data | undefined;
  1345. /* Excluded from this release type: ssrUtils */
  1346. export declare const Static: unique symbol;
  1347. export { stop_2 as stop }
  1348. export declare const Suspense: {
  1349. new (): {
  1350. $props: VNodeProps & SuspenseProps;
  1351. };
  1352. __isSuspense: true;
  1353. };
  1354. export declare interface SuspenseBoundary {
  1355. vnode: VNode<RendererNode, RendererElement, SuspenseProps>;
  1356. parent: SuspenseBoundary | null;
  1357. parentComponent: ComponentInternalInstance | null;
  1358. isSVG: boolean;
  1359. container: RendererElement;
  1360. hiddenContainer: RendererElement;
  1361. anchor: RendererNode | null;
  1362. activeBranch: VNode | null;
  1363. pendingBranch: VNode | null;
  1364. deps: number;
  1365. pendingId: number;
  1366. timeout: number;
  1367. isInFallback: boolean;
  1368. isHydrating: boolean;
  1369. isUnmounted: boolean;
  1370. effects: Function[];
  1371. resolve(force?: boolean): void;
  1372. fallback(fallbackVNode: VNode): void;
  1373. move(container: RendererElement, anchor: RendererNode | null, type: MoveType): void;
  1374. next(): RendererNode | null;
  1375. registerDep(instance: ComponentInternalInstance, setupRenderEffect: SetupRenderEffectFn): void;
  1376. unmount(parentSuspense: SuspenseBoundary | null, doRemove?: boolean): void;
  1377. }
  1378. declare const SuspenseImpl: {
  1379. name: string;
  1380. __isSuspense: boolean;
  1381. process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
  1382. hydrate: typeof hydrateSuspense;
  1383. create: typeof createSuspenseBoundary;
  1384. normalize: typeof normalizeSuspenseChildren;
  1385. };
  1386. export declare interface SuspenseProps {
  1387. onResolve?: () => void;
  1388. onPending?: () => void;
  1389. onFallback?: () => void;
  1390. timeout?: string | number;
  1391. }
  1392. export declare const Teleport: {
  1393. new (): {
  1394. $props: VNodeProps & TeleportProps;
  1395. };
  1396. __isTeleport: true;
  1397. };
  1398. declare const TeleportImpl: {
  1399. __isTeleport: boolean;
  1400. process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
  1401. remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: Boolean): void;
  1402. move: typeof moveTeleport;
  1403. hydrate: typeof hydrateTeleport;
  1404. };
  1405. declare const enum TeleportMoveTypes {
  1406. TARGET_CHANGE = 0,
  1407. TOGGLE = 1,
  1408. REORDER = 2
  1409. }
  1410. export declare interface TeleportProps {
  1411. to: string | RendererElement | null | undefined;
  1412. disabled?: boolean;
  1413. }
  1414. declare type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
  1415. declare const Text_2: unique symbol;
  1416. export { Text_2 as Text }
  1417. export { toDisplayString }
  1418. export { toHandlerKey }
  1419. /**
  1420. * For prefixing keys in v-on="obj" with "on"
  1421. * @private
  1422. */
  1423. export declare function toHandlers(obj: Record<string, any>): Record<string, any>;
  1424. export { toRaw }
  1425. export { ToRef }
  1426. export { toRef }
  1427. export { ToRefs }
  1428. export { toRefs }
  1429. export { TrackOpTypes }
  1430. /**
  1431. * Internal API for registering an arguments transform for createVNode
  1432. * used for creating stubs in the test-utils
  1433. * It is *internal* but needs to be exposed for test-utils to pick up proper
  1434. * typings
  1435. */
  1436. export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
  1437. export declare interface TransitionHooks<HostElement extends RendererElement = RendererElement> {
  1438. mode: BaseTransitionProps['mode'];
  1439. persisted: boolean;
  1440. beforeEnter(el: HostElement): void;
  1441. enter(el: HostElement): void;
  1442. leave(el: HostElement, remove: () => void): void;
  1443. clone(vnode: VNode): TransitionHooks<HostElement>;
  1444. afterLeave?(): void;
  1445. delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
  1446. delayedLeave?(): void;
  1447. }
  1448. export declare interface TransitionState {
  1449. isMounted: boolean;
  1450. isLeaving: boolean;
  1451. isUnmounting: boolean;
  1452. leavingVNodes: Map<any, Record<string, VNode>>;
  1453. }
  1454. export { TriggerOpTypes }
  1455. export { triggerRef }
  1456. declare type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
  1457. declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
  1458. export { unref }
  1459. declare type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
  1460. export { UnwrapNestedRefs }
  1461. export { UnwrapRef }
  1462. export declare function useAttrs(): SetupContext['attrs'];
  1463. export declare function useSlots(): SetupContext['slots'];
  1464. export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
  1465. export declare function useTransitionState(): TransitionState;
  1466. export declare const version: string;
  1467. export declare interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
  1468. [key: string]: any;
  1469. }> {
  1470. /* Excluded from this release type: __v_isVNode */
  1471. /* Excluded from this release type: __v_skip */
  1472. type: VNodeTypes;
  1473. props: (VNodeProps & ExtraProps) | null;
  1474. key: string | number | symbol | null;
  1475. ref: VNodeNormalizedRef | null;
  1476. /**
  1477. * SFC only. This is assigned on vnode creation using currentScopeId
  1478. * which is set alongside currentRenderingInstance.
  1479. */
  1480. scopeId: string | null;
  1481. /* Excluded from this release type: slotScopeIds */
  1482. children: VNodeNormalizedChildren;
  1483. component: ComponentInternalInstance | null;
  1484. dirs: DirectiveBinding[] | null;
  1485. transition: TransitionHooks<HostElement> | null;
  1486. el: HostNode | null;
  1487. anchor: HostNode | null;
  1488. target: HostElement | null;
  1489. targetAnchor: HostNode | null;
  1490. /* Excluded from this release type: staticCount */
  1491. suspense: SuspenseBoundary | null;
  1492. /* Excluded from this release type: ssContent */
  1493. /* Excluded from this release type: ssFallback */
  1494. shapeFlag: number;
  1495. patchFlag: number;
  1496. /* Excluded from this release type: dynamicProps */
  1497. /* Excluded from this release type: dynamicChildren */
  1498. appContext: AppContext | null;
  1499. /* Excluded from this release type: memo */
  1500. /* Excluded from this release type: isCompatRoot */
  1501. /* Excluded from this release type: ce */
  1502. }
  1503. declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
  1504. export declare type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
  1505. export declare type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
  1506. declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
  1507. declare type VNodeMountHook = (vnode: VNode) => void;
  1508. export declare type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
  1509. declare type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
  1510. declare type VNodeNormalizedRefAtom = {
  1511. i: ComponentInternalInstance;
  1512. r: VNodeRef;
  1513. k?: string;
  1514. f?: boolean;
  1515. };
  1516. export declare type VNodeProps = {
  1517. key?: string | number | symbol;
  1518. ref?: VNodeRef;
  1519. ref_for?: boolean;
  1520. ref_key?: string;
  1521. onVnodeBeforeMount?: VNodeMountHook | VNodeMountHook[];
  1522. onVnodeMounted?: VNodeMountHook | VNodeMountHook[];
  1523. onVnodeBeforeUpdate?: VNodeUpdateHook | VNodeUpdateHook[];
  1524. onVnodeUpdated?: VNodeUpdateHook | VNodeUpdateHook[];
  1525. onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
  1526. onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
  1527. };
  1528. declare type VNodeRef = string | Ref | ((ref: object | null, refs: Record<string, any>) => void);
  1529. export declare type VNodeTypes = string | VNode | Component | typeof Text_2 | typeof Static | typeof Comment_2 | typeof Fragment | typeof TeleportImpl | typeof SuspenseImpl;
  1530. declare type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
  1531. export declare function warn(msg: string, ...args: any[]): void;
  1532. declare function warnDeprecation(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): void;
  1533. export declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
  1534. export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
  1535. export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
  1536. export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
  1537. export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
  1538. export declare type WatchEffect = (onCleanup: OnCleanup) => void;
  1539. export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
  1540. declare type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
  1541. export declare interface WatchOptions<Immediate = boolean> extends WatchOptionsBase {
  1542. immediate?: Immediate;
  1543. deep?: boolean;
  1544. }
  1545. export declare interface WatchOptionsBase extends DebuggerOptions {
  1546. flush?: 'pre' | 'post' | 'sync';
  1547. }
  1548. export declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
  1549. export declare type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
  1550. export declare type WatchStopHandle = () => void;
  1551. export declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
  1552. /* Excluded from this release type: withAsyncContext */
  1553. /**
  1554. * Wrap a slot function to memoize current rendering instance
  1555. * @private compiler helper
  1556. */
  1557. export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
  1558. /**
  1559. * Vue `<script setup>` compiler macro for providing props default values when
  1560. * using type-based `defineProps` declaration.
  1561. *
  1562. * Example usage:
  1563. * ```ts
  1564. * withDefaults(defineProps<{
  1565. * size?: number
  1566. * labels?: string[]
  1567. * }>(), {
  1568. * size: 3,
  1569. * labels: () => ['default label']
  1570. * })
  1571. * ```
  1572. *
  1573. * This is only usable inside `<script setup>`, is compiled away in the output
  1574. * and should **not** be actually called at runtime.
  1575. */
  1576. export declare function withDefaults<Props, Defaults extends InferDefaults<Props>>(props: Props, defaults: Defaults): PropsWithDefaults<Props, Defaults>;
  1577. /**
  1578. * Adds directives to a VNode.
  1579. */
  1580. export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
  1581. export declare function withMemo(memo: any[], render: () => VNode<any, any>, cache: any[], index: number): VNode<any, any, {
  1582. [key: string]: any;
  1583. }>;
  1584. /**
  1585. * Only for backwards compat
  1586. * @private
  1587. */
  1588. export declare const withScopeId: (_id: string) => typeof withCtx;
  1589. export { WritableComputedOptions }
  1590. export { WritableComputedRef }
  1591. export { }
  1592. // Note: this file is auto concatenated to the end of the bundled d.ts during
  1593. // build.
  1594. declare module '@vue/reactivity' {
  1595. export interface RefUnwrapBailTypes {
  1596. runtimeCoreBailTypes:
  1597. | VNode
  1598. | {
  1599. // directly bailing on ComponentPublicInstance results in recursion
  1600. // so we use this as a bail hint
  1601. $: ComponentInternalInstance
  1602. }
  1603. }
  1604. }
  1605. // Note: this file is auto concatenated to the end of the bundled d.ts during
  1606. // build.
  1607. type _defineProps = typeof defineProps
  1608. type _defineEmits = typeof defineEmits
  1609. type _defineExpose = typeof defineExpose
  1610. type _withDefaults = typeof withDefaults
  1611. declare global {
  1612. const defineProps: _defineProps
  1613. const defineEmits: _defineEmits
  1614. const defineExpose: _defineExpose
  1615. const withDefaults: _withDefaults
  1616. }